2. What is MVVM ?
MVVM is a design patterndesign pattern
MVVM stands for Model-View-ViewModelModel-View-ViewModel
3. The View
Represents the user interface that the user will
see
Can be a page, user control or Data Template
Clean code-behind
Only visual logic (all the rest should go in
the ViewModel)
Should never contain anything that is to be
tested
Model-related
4. The Model
Data model, service reference/proxy classes,
Very often, an extra layer is added on top
of the generated proxy classes
Validation logic
Data access
No reference to ViewModel
5. ViewModel
It contains all the data that needs to be displayed and
procedures to modify the model at will.
The magic about MVVM is that the ViewModel
knows nothing about the View.
State
Operations
Not dependent on the view