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

Why CanxxxCommandExecute is fired so much times?

I've got some problems with Commands and their CanXXXExecute... I was thinking it was a Catel (MVVM framework) problem but I've tested myself with a standard WPF application and it still happen.. In the example I'm posting I've got the…
advapi
  • 3,661
  • 4
  • 38
  • 73
2
votes
1 answer

How to migrate from Catel project to Orchestra + MahApps? (.NET 4.0)

I have a Catel project, using various Catel controls and classes, how do I migrate/update it to Orchestra (MahApps)?
Kilazur
  • 3,089
  • 1
  • 22
  • 48
2
votes
1 answer

Binding from within a ResourceDictionary in a Catel WPF UserControl

I am converting some of the views and view models of our WPF application over to Catel, as a proof-of-concept. One of the user controls doesn't seem to be correctly binding to the view model at runtime. I think I understand why that is, but would…
Zach Blocker
  • 309
  • 6
  • 16
2
votes
1 answer

Getting DialogResult using uiVisualizerservice.Show

I was porting a modal dialog to a non-modal one. My problem is: uiCompletedEventArgs.Result is null. I've seen having the debug exception enabled that the following exception is thrown "DialogResult can be set only after Window is created and…
2
votes
1 answer

Catel's AsynchronousCommand correct usage

I've to call an async Task using a command. I tought that AsynchronousCommand would have done the trick but it accepts an Action as method so I've to use something as public async void Something(object args) would it be supposed to accept a Task on…
advapi
  • 3,661
  • 4
  • 38
  • 73
2
votes
1 answer

Catel + EntityFramework

I'm just a starter and asking a simple question.. Just need a direction where to move. Can someone explain in very few words the process of application development using WPF+MVVM pattern (using Catel) with database created with Entity Framework. 1.…
EugeneK
  • 75
  • 7
2
votes
2 answers

Catel async await command in ShowDialog - Deadlock

Using a library Сatel latest version (3.8.1 beta). How can I use TAP method from dialog window? Example. In main ViewModel calling a method private bool ShowDialogWindow() { var typeFactory = TypeFactory.Default ; var vm =…
bobah75
  • 3,500
  • 1
  • 16
  • 25
2
votes
1 answer

Using a parameter with Catel Command

I tried using a parameter with Catel's Command: public Command MyCommand { get; private set; } MyCommand = new Command(MyCommand_Execute); private void MyCommand_Execute(object parameter) { } and get the following error: The best overloaded…
2
votes
2 answers

Recommendations for One view that can have two viewmodel modes

Perhaps I am not even thinking about this in the right way so I am open to suggestions, but I would like to use exactly the same view for both creating and editing. I don't want to say create/edit an entity because it's more complicated than that. …
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
2
votes
1 answer

WPF ContentControl does not resolve correct View from ViewModel (Catel)

I have a WPF Project with a RibbonWindow as MainWindow and I’m using Catel. /Views/MainWindow: public partial class MainWindow : MainWindowBase { public MainWindow() { InitializeComponent(); } } This MainWindow is derived from…
Stefan
  • 21
  • 1
2
votes
0 answers

Catel property is invalid (not serializable?)

When I enabled Fody to autogenerate Catel Properties and then run my application, I receive a runtime error saying one of my Properties (which references another entity) is invalid: Property 'Hedge' is invalid (not serializable?) This happens in the…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
2
votes
2 answers

How would I use Autofac as the primary container in Catel?

Is there a way I can use Autofac as my primary container for Catel? I've seen that there is support for Unity, Ninject, MEF, Windsor, and Unity, but there is no mention of Autofac integration.
Damian
  • 2,709
  • 2
  • 29
  • 40
2
votes
1 answer

Setting DataContext in Catel with WPF

So I've started looking at the Catel MVVM framework and it looks like it will solve a couple of problems I have encountered, but I have one really silly issue. I think I'm just missing something small. I took one of my smaller WPF projects to switch…
pjdupreez
  • 659
  • 1
  • 8
  • 19
2
votes
1 answer

winRT catel example fails to run

I've faced with problem while trying to run catel WinRt example. When I try to debug Catel.Examples.WinRT.Advanced VS 2012 throw exception Failed to create the delegate. Probably the wrong type of EventArgs is used and does not match the…
FunctorPrototype
  • 1,173
  • 2
  • 12
  • 24
2
votes
0 answers

Build takes significant time after registering CustomViewModelFactory

I'm using amazing catel mvvm framework. But I've faced with issue while registering CustomViewModelFactory: When I'm adding this code in App.xaml.cs, building becomes slow (1 min). protected override void OnStartup(StartupEventArgs e) { …
FunctorPrototype
  • 1,173
  • 2
  • 12
  • 24
1
2
3
25 26