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
2 answers

WPF Entity Framework refresh one context entity

I have a simple MVVM WPF app with database-first EF dbContext (which is Global.Database in my app), which is long-living in my application. I have a window with a listbox with ItemsSource binded to viewmodel property called Clients which is an…
rovnyart_
  • 161
  • 11
1
vote
1 answer

Catel Example Orc Wizard - How to size the Wizard window

Trying to learn Catel. Looking at the Orc.Wizard.Example.NET40 application. I cannot figure out how to set the size of the Wizard window. For example, the sample code seems to produce a default sized window for the wizard. Where does this default…
Frank Monroe
  • 1,557
  • 2
  • 13
  • 20
1
vote
0 answers

Tracking database changes in wpf application using Catel and Entity Framework

I have a program, which uses MS SQL database. I decided to switch to MVVM WPF pattern and use Entity Framework for database stuff and Catel for MVVM stuff. I created database first model and long-term context in my code (Global.Database). I changed…
rovnyart_
  • 161
  • 11
1
vote
1 answer

WPF Catch event if SmartCard is inserted

If I insert a Card in my SmartCard reader on my device. I want to trigger an event in my WPF project. Any idea's to achieve that?
1
vote
1 answer

How to close Catel Framework Datawindow from the viewmodel

Does anyone know how to close (or save) the data window from your viewmodel and not use the ok or cancel button but custom buttons like this: public class UploadWindow : DataWindow { public UploadWindow() : base(DataWindowMode.Custom) …
1
vote
2 answers

Define if a property is loaded or set by the view

I'm trying to make a "Dirty" implementation with Catel. I have a viewmodel, with a [Model] property and a few [ViewModelToModel] mapped to it. And I added a boolean member _canGetDirty, that when set to true allows viewmodel properties to prompt a…
Kilazur
  • 3,089
  • 1
  • 22
  • 48
1
vote
0 answers

Using windbg to identify the code a System.Action will execute

Something went horribly wrong with my WPF application and it appears I have 24 million actions on the dispatcher waiting to run. windbg with sosex shows me 0:000> !dumpgen 2 -stat Count Total Size …
JonDrnek
  • 1,414
  • 3
  • 19
  • 37
1
vote
2 answers

Nested Views for nested ViewModels

I am looking for a solution/mvvm framework that supports nesting ViewModels and Views. What I mean is: Each ViewModel derives from BaseViewModel ViewModels have properties that are of type BaseViewModel which are sub-ViewModels (nested inside…
raV720
  • 564
  • 3
  • 27
1
vote
0 answers

Wpf mvvm datagrid EditingCellEvent OutOfMemoryException

I have grid in a WPF window and a DataGrid control inside:
1
vote
1 answer

CanExecute methods not firing after moving to Catel 4.x

Following up on this question and its answer (which did solve my problem), I have a couple of questions: Where do I retrieve the ViewModelManager to pass to the constructor of RequeryAllTheThings? Currently, I am using the…
Brian Watt
  • 225
  • 1
  • 7
1
vote
1 answer

How can I control access for more than two roles in WPF Catel Framework?

For example I have 3 roles: admin, developer, project manager. If i want to disable controls for all users except for admin, i'll write:
Kapiroska
  • 11
  • 6
1
vote
1 answer

Why does IDependecyResolver.Resolve() method throw exception 'Catel.IoC.TypeNotRegisteredException'?

I have exception 'Catel.IoC.TypeNotRegisteredException' when I try to resolve IUICompositionService interface. I added reference Catel.Extensions.Prism and installed LoadAssembliesOnStartup.Fody from Nuget to my WPF MVVM Catel project and in…
Dr.Doog
  • 197
  • 4
  • 14
1
vote
1 answer

MTOUCH: error MT0034 Xamarin.iOS and Catel

I am getting this error when I try to compile my Xamarin.iOS app. I am referencing Catel.MVVM and Catel.Fody. Any idea what to do? MTOUCH: error MT0034: Cannot include both 'monotouch.dll' and 'Xamarin.iOS.dll' in the same Xamarin.iOS project -…
pjdupreez
  • 659
  • 1
  • 8
  • 19
1
vote
1 answer

Using catel with 3rd party controls

I'm new to catel and mvvm. I 've successfully built a sample application the "catel" way and I like all the added features which I do need (thank you for the great tutorials). I've successfully run a sample app using typical mvvm and a 3rd party…
1
vote
0 answers

catel serialize to XML

How to serialize a model, so I can use the standard methods of NET? For example, I need to serialize the data into XML and then use them in a completely different program without Catel. My Model class: public class MainModel : ModelBase { …
streamdown
  • 390
  • 4
  • 17