Is there any examples of using the WPF controls with a MVVM ( Model View View Model ) pattern?
Did you find any examples? I'm quite comfortable in binding a XamDataGrid to the exposed ObservableCollection property on the ViewModel. I'm more interested in the harder questions e.g. How does the ViewModel handle the events fired by the XamDataGrid e.g CellExitingEditMode etc etc. The events fired by the XamDataGrid are tightly coupled with the UI component e.g. many of the event args are Infragistic types: GenericGrid_CellExitingEditMode(object sender, ExitEditingCellEventArgs e)
Myles
Oh sorry, I meant a simple demonstration of how the features of the grid ( like selected row(s),inserting, editing, filtering, etc.) could be implemented in the MVVM pattern udeating a data source.
Hello,
I am not sure what example exactly are you looking for. The XamDataGrid behaves just like any ItemsSource control. All you need to do is bind the DataSource property to the collection (IEnumerable) exposed by your underlying ViewModel.
This is only for Dock? What about the grid ?
Found it NCAL?
http://ncal.codeplex.com/SourceControl/changeset/view/20717#