Questions tagged [catel]

Catel is an application development platform for .NET with the focus on MVVM.

Catel is an application development platform with the focus on MVVM and MVC. The core of Catel contains an IoC container, models, validation, memento, message mediator, argument checking, etc. http://www.catelproject.com

380 questions
1
vote
0 answers

Catel.ModelAttribute causes memory leak?

We're using Catel Framework 3.9 (cannot upgrade to newer version because we're in production). I recently noticed that when opening a ViewModel multiple times, the ViewModel stays in memory. I tracked the issue down to one DTO that was bound to the…
kor_
  • 1,510
  • 1
  • 16
  • 36
1
vote
2 answers

WPF Button CommandParameter not passed properly to Command

I have problem with passing CommandParameter to my Command I have command: private Command _setAsCompletedCommand; public Command SetAsCompletedCommand { get { return _setAsCompletedCommand ??…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
1
vote
1 answer

Call a Task when a property has been updated

in a WPF MVVM (Catel) Application I've to call a Task GetDateFor(int portfolio, int currency); Right now what I'm doing is if (e.HasPropertyChanged(() => SelectedCross)) { using (StartInternalChange()) { await…
advapi
  • 3,661
  • 4
  • 38
  • 73
1
vote
0 answers

Catel, IMessageService seems not working on Windows Phone 8.1 Silverlight

The code below does not produce any effect in any context. Explanation would be very appreciated? var messageService = ServiceLocator.Default.ResolveType(); var result = messageService.ShowAsync("My message via the service");
Sergey Orlov
  • 491
  • 5
  • 16
1
vote
1 answer

Catel: change look and feel of error message

Good day! How can I change a look and feel of Catel's error message? Change a language of string "The following warnings and/or errors found (hover to view); How can I force validation on every TextChanged event? I want to change field…
ArieSLV
  • 25
  • 9
1
vote
1 answer

Best practice is to use a model or a simple property?

I'm refactoring a piece of code I've written some times ago. I wrote a custom usercontrol that allows a user to select a counterpart. The viewmodel has 2 properties defined as #region Properties [ViewToViewModel(MappingType =…
advapi
  • 3,661
  • 4
  • 38
  • 73
1
vote
1 answer

Purpose of DisableEventSubscriptionsOfChildValues in Catel?

I've done some profiling of an application using the Catel framework. There were a lot of calls to Catel.Data.ModelBase.HandleObjectEventsSubscriptions and below this method calls none of our code is executed, so I took a closer look at this method…
jörg
  • 53
  • 7
1
vote
1 answer

ViewManager.GetViewsOfViewModel always return null

I'm trying to use Catel ViewManager to registering and getting view but I don't get View from ViewManager.GetViewsOfViewModel As I understand it, a when the UserControl is unloaded from the visual tree it is destroyed but this should not happen…
user45245
  • 845
  • 1
  • 8
  • 18
1
vote
1 answer
1
vote
1 answer

Custom Usercontrol with MVVM and Catel

I've created a custom usercontrol that's composed of a AutoCompleteBox with a Selected Item... till now I've implemented it in a way I don't like... I mean I've a XAML view, a Viewmodel and in the viewmodel I load data from a stored procedure. Since…
advapi
  • 3,661
  • 4
  • 38
  • 73
1
vote
1 answer

Validation on viewmodel + Catel

Im trying to implement validation on a viewModel in Catel. I read the documentation and it looks really easy but somehow i'm probably missing something for this particular case. I have a user control that has two user controls nested in it. One is a…
1
vote
0 answers

Add different types or UserControl in ItemControl

I am using an ItemControl in my xaml code and it's itemsource is bound to a list of myCustomUserControl. I use Catel MVVM framework My question is : I have now a second type of UserControl with it's own view and viewmodel. Is it possible to bind the…
1
vote
1 answer

Catel framework - Lazy property

I'm trying to create a lazy property with Catel framework. Is there a way to do it? When I'm creating a property in ViewModel like this: #region Photos property /// /// Gets or sets the Photos value. /// public…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
1
vote
0 answers

Catel Mapping properties to Model

I have problem with AutoMapping Catel ViewModel -> Model properties. I'm using Catel with Fody.Catel I have a situation when my model changes during runtime. My Model declaration looks like this: [Model] public MyModel SelectedMyModel { get; set;…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
1
vote
1 answer

Catel.Fody and validation

I'm usign Catel to create my WPF application. I'm also using Fody.Catel plugin to forget about these Catel-like dependency properties. But right now I'm about to create validation for fields, and I cannot handle that. From Catel example it should…
Tomasz
  • 2,051
  • 3
  • 31
  • 64