Mar 26, 2012 at 10:09 AM
Edited Mar 26, 2012 at 1:45 PM
I developed for quite some time in ASP.NET using de mvp pattern but now I started a new project using WPF. I started with the Simple MVVM toolkit but since it does not seem to support native nested views I moved to Catel. By coincidence you
post there about nested views?
I have to say I am really impressed by the framework that you have produced but also a bit intimidated since I am relative new to world of xaml, routed events/commands, control templates, dependency properties, mvvm, etc.
Anyway I refactored my project to Catel and my nested views now work fine. It is a telerik grid (main view) which shows an obsevable collection of projects. In the grid I am showing 5 instances of a view that represent a day which is an obsevable
collection in de main (view)model . In that view there can be x instances of a person view which is an obsevable collection in de day view(model).
Alle have there own viewmodel and this al works fine.
Now the Issues that I ran into.
I want is to delegate a command from the mainwindowviewmodel to a child model. I have an expander in a gridrow. When a users clicks it I want an expander in the day view to expand or collapse too in the same row. It seems I can't bind commands to expanders
and how can I pass the command with parameter bool IsExpanded to the child viewmodels?
My last question is about the header. I want to show a (dynamic) date there. Since it is not possible to bind the grid header I get an instance of the vm in code behind. Then I get the first project row if there is any and set it's date to the header. Is
there any other way to do this?
I have downloaded the catel
examples and checked the nested views example with the rooms, beds etc. In your
article you have buttons to add rooms, beds etc but in the example these are missing while they could help me solve my problem. I tried to add them myself but I can't get it to work. Is it possible to share this example with the buttons us?