Contents tagged with MVVM
-
Silverlight Commands Hacks: Passing EventArgs as CommandParameter to DelegateCommand triggered by EventTrigger
Today I've tried to find a way how to pass EventArgs as CommandParameter to DelegateCommand triggered by EventTrigger. By reverse engineering of default InvokeCommandAction I find that blend team just ignores event args.
-
Connect ViewModel and View using Unity
In this post i want to describe the approach of connecting View and ViewModel which I'm using in my last project.
-
Silverlight Tips & Tricks: Make Silverlight DataGrid be more MVVM friendly =)
Today one guy from our dev team met some problems with binding of datagrid selected items. Because of SelectedItems is readonly property, we cannot create two way binding for it. After a short discussion we decided to create DataGridSelectedChanged command behavior which will inform our model about selected rows. (We are using microsoft p&p prism commands api).