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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Model:
INotifyPropertyChangedandINotifyCollectionChangedinterfaces.ObservableCollection<T>class.IDataErrorInfoorINotifyDataErrorInfointerfaces.View:
For e.g, the view may use value converters to format the data to be displayed in the UI, or it may use validation rules to provide additional input data validation to the user.
ViewModel:
INotifyPropertyChangedandINotifyCollectionChangedinterfaces.IDataErrorInfoorINotifyDataErrorInfointerfaces.Source: http://code.msdn.microsoft.com/Design-Patterns-MVVM-Model-d4b512f0