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

How to get UIVisualizer to use the View Model passed to it

I'm attempting to create view/viewModel pair to act as a MessageBox replacement which will be called by the UIVisualizer Service. The viewModel has five different constructors, one being the default, and the others to define the different…
0
votes
1 answer

Are not templates and codesnippets supposed to get installed with the Catel packages when using the NuGet Package Manager?

I have added Catel.Core 3.7, Catel.MVVM 3.7 and Catel.Extensions.Controls 3.7 to my Project but does not have the codesnippets. I have looked in C:\Users\NNUser\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets and no Catel…
0
votes
1 answer

MVVM, Catel and Graphical UI Interaction

I'm working on a graphics application where the user clicks on FrameworkElements and drags them around on a Canvas. It works in code-behind, but want to update it with Catel/MVVM. My general question: In this app, the ViewModel has to "know" about…
0
votes
1 answer

Catel 4.0: IMessageService get dialog result synchronously

How is it possible to display a dialog with IMessageService in Catel 4.0 and get it's result immediately (not asynchronously)? Previously it was possible like this: var messageService = ServiceLocator.ResolveType(); var result =…
0
votes
0 answers

Catel project slow to build

I am creating very simple WPF .NET4 project using Catel Project Template in VS2013. I am using pre-release builds. As per readme I am adding Catel.Extensions.Controls. Immidiately I am trying to build and get error on RegisterDebugListener(), which…
Jim
  • 2,760
  • 8
  • 42
  • 66
0
votes
1 answer

'Catel.IoC.IServiceLocator' does not contain a definition for 'Instance'

I'm quite new to .NET development and Catel but is working on a project to learn it. At the moment the original developer is not present so I'll try my luck here instead. To implement Undo/Redo the Memento Pattern support of Catel seems great so…
0
votes
1 answer

How to use the catel:WindowBehavior with custom windows in catel 3.9.0+

i want to create a window based on infragistics XamRibbonWindow but with catel features. Within the catel documentation I found informations about how to archieve this using the catel:WindowBehavior.
alex.enjoy
  • 301
  • 3
  • 10
0
votes
1 answer

Catel ServiceLocatorRegistration attribute get compile error message

I try to create automatically registering with Catel framework, [ServiceLocatorRegistration(typeof(ISalesOrderListViewModel))] public class SalesOrderListViewModel : ISalesOrderListViewModel { } But i got this error when…
Ericyu67
  • 105
  • 1
  • 4
  • 11
0
votes
1 answer

catel usercontrol base constructor throw TypeNotRegisteredException

I'm using the catel 4 pre-release, just trying to change my user control into a catel usercontrol, but for some reason catel is unable to pass the catel base constructor and throw this TypeNotRegisteredException.. can someone please tell me what…
0
votes
2 answers

how to Step through Catel code while debugging ?

After adding Catel implementation to one of my views(mainPage) in my project I have a bug that crashes my Silverlight project. The only indication I have is :" A first chance exception of type 'System.NullReferenceException' occurred in Catel.MVVM "…
0
votes
1 answer

Changing a value of an item in an ObservableCollection

Typical customer invoice scenario: ObservableCollection in a viewmodel that holds LineItems. The view lists the LineItems with a calculated LineTotal shown at the end of each line. The, there's a GrandTotal shown at the bottom of the page. If the…
0
votes
2 answers

Creating a multiple WPF application using Catel

I have started a new project using WPF and Catel and I want to be able to have multiple windows without ownership. I have been able to create an application with a standard window and which creates dialogs. I would like to find an example or…
Frank H
  • 1
  • 2
0
votes
1 answer

How to prevent closing of a ViewModel (and the canceling of the Model) in Catel

I need to prevent a ViewModel from closing and also prevent the Model editing from being canceled. I tried overriding OnClosing in the ViewModel, but that event came too late. It came after the Model editing was canceled. (Seems like strange…
SOHO Developer
  • 583
  • 4
  • 16
0
votes
1 answer

Passing Two items in a ViewModel's constructor in Catel

Can a UserControl's ViewModel constructor be set up to fire with the view's DataContext AND another dependency injection? I would like to be able to get the UserControl's datacontext (set in it's parent's veiw) and a database service into a…
0
votes
2 answers

CancelEdit, CancelViewModel and HasDirtyModel in Catel nested controls

I have a window, containing a nested control NC1 which contains 3 instances of nested control NC2. I have a "reset" button on NC1 that is supposed to reset the values of NC1 and all three NC2s within the NC1. I have tried several implementations of…
SOHO Developer
  • 583
  • 4
  • 16