Reputation: 1340
What is the basic definition of the Model, View and ViewModel objects in WPF's MVVM design pattern? What are their responsibilities, what each of them should and shouldn't do?
Upvotes: 2
Views: 1416
Reputation: 1340
Model:
INotifyPropertyChanged
and INotifyCollectionChanged
interfaces. ObservableCollection<T>
class.IDataErrorInfo
or INotifyDataErrorInfo
interfaces.View:
ViewModel:
INotifyPropertyChanged
and INotifyCollectionChanged
interfaces.IDataErrorInfo
or INotifyDataErrorInfo
interfaces.Source: http://code.msdn.microsoft.com/Design-Patterns-MVVM-Model-d4b512f0
Upvotes: 8