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
0
votes
1 answer

Catel ModelBase error

I'm trying to use ModelBase as the base class for EntityBase as suggested in the documentation at https://catelproject.atlassian.net/wiki/display/CTL/Using+ModelBase+as+base+for+entities. I'm using VS Express 2013 for Windows Desktop (C#), EF v6 and…
0
votes
3 answers

How Instantiate Control Programmatically in Catel

I am trying to dynamically create and load controls into a data window. I have tabs across the top which are different types of reports. I want to be able to create new reports without having to remember to add them to the tab control. I am trying…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
0
votes
1 answer

Multiple VM creation while using Catel with Modern UI

I love Catel framework. Modern UI looks pretty good. But I've faced with problem while trying to make them works together. I've added two catels usercontrols Home and Second in mui project. The problem is that when transition from Home to Second…
FunctorPrototype
  • 1,173
  • 2
  • 12
  • 24
0
votes
0 answers

Two way communication in Catel MessageMediator

What is the recommended way to set up two way communication through the messagemediator? My instinct was to create 2 channels (request/reply). I don't see any way to create channels within the MessageMediator. Then my idea was to have 2 instances…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
0
votes
1 answer

Catel PleaseWaitHelper doesn't work after update

I've updated the catel nuget package in my WinForms project and now the PleaseWaitHelper.Show() method returns a null reference exception. Hopefully someone will be able to shed some light on this? Here is the code: private void…
Daniel Hakimi
  • 1,153
  • 9
  • 16
0
votes
1 answer

Catel/Ninject: Ninject.ActivationException when resolving IUIVisualizerService

when i was trying to resolve the IUIVisualizerService a Ninject.ActivationException came up in Ninject.dll. Can someone help me pls? This code section calls the problem: NinjectDependencyResolver resolver = new NinjectDependencyResolver(); …
Benjamin Martin
  • 576
  • 1
  • 8
  • 27
0
votes
1 answer

Similar method to CanExecute but for properties instead of commands?

is there an option to have a CanChange method for a property in my ViewModel, to automatically enable and disable a input field (RadioButton, TextBox, ...) according to the return value of the CanChange method? This is currently possible for Command…
pgross
  • 510
  • 5
  • 16
0
votes
1 answer

Support for XmlRoot, XmlAttribute, and XmlElement in Catel ModelBase.Load?

I am running into an issue with derived classes from ModelBase. I'd like to seralize and deseiralize them however I also want to map the xml attributes to properties using XmlAttribute and XmlElement. Right now, I cannot seem to get this to work…
Shawn
  • 115
  • 2
  • 13
0
votes
1 answer

Applying changes to model in master/detail scenario

I am developing an application using Catel with an master/detail architecture similar to Catel.Examples.WPF.MasterDetail. If I alter the properties of the current model in the Details view and then switch the current element in Master view, then all…
galead
  • 3
  • 1
0
votes
0 answers

How do I workaround "the type 'full.name' has no settable properties" in a WCF Data Services client?

I'm using WCF Data Services 5.6 with custom entity classes, and successfully reading data into entities which inherit from Catel's ModelBase. However, when I try to perform an insert or update back, the reflection used by Data Service fails on one…
0
votes
1 answer

Wrong View shown (Catel)

I'm trying to open a View with a ViewModel from my MainWindowViewModel. It works, but all I get is a blank window. It binds the correct title but every other control is missing. Did anyone have the same problem and found a solution?
Stefan Schmid
  • 1,012
  • 10
  • 28
0
votes
1 answer

Catel ViewModel is not created

I have a calel:Usercontrol which will be a sidebar with overrided GetViewModelType() method. Additionally I have dependencyProperty to set Model Item. Problem is that my ViewModel is never initialized. I don't know why, but other controls View…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
0
votes
1 answer

Catel performance with multiple list items

I have a problem with performance with Catel ViewModels. I have a ListView with ~300 items. Each of item has its own UserControl and ViewModel. ViewModel has Model property which is a constructor's parameter. It least ~10seconds to create 300…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
0
votes
0 answers

Catel MVVM + Json.NET model

I'm having problem with connecting Catel framework with Json.NET. I have prepared a model class with will be created by deserialization: [Serializable] [JsonObject(MemberSerialization.OptIn)] public class PlaceRabat : ModelBase { #region…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
0
votes
2 answers

Is there a best practice for enable (CanExecute) a button in an other userControl?

Is there a best practice for how to enable (CanExecute) a button in an other userControl? A simple scenario is as follow. When selecting one row in a datagrid in UserControl_1 a button should be enabled in UserControl_2 and also provide the…
Greg
  • 25
  • 3