Tuesday 23 August 2011

Model View ViewModel in WPF

Binding is an important concept in WPF implementation of the Model View ViewModel.

Step 1: Bind the UI component with data model in XAML.

Step 2: Implement the INotifyPrepertyChanged interface in the ViewModel

Reference:
http://msdn.microsoft.com/en-us/library/system.windows.data.binding.mode.aspx
http://msdn.microsoft.com/en-us/library/ms743695.aspx

This is how the View associated with the ViewModel

This is how the ViewModel associated with the Model.
The Code is in the parent ViewModel.







No comments:

Post a Comment