MVVM
1. What MVVM that?
- MVVM is a Model-View-ViewModel shorthand
- It is essentially an improved version of MVC
- The origin of the framework MVVM (Model-View-ViewModel) is the MVP (Model-View-Presenter) evolution over the way the application model and WPF binding to a new architecture framework
2, MVVM advantage
-
MVVM pattern and MVC mode, a primary object of the isolated view (View) and the model (the Model), has several advantages
-
Low coupling : view (View) Model may be independent of changes and modifications can be bound to a ViewModel different "View", when the Model View change may be constant, when the Model View can also change the time constant
-
Reusability : You can view some of the logic in a ViewModel inside, so many view reuse this view logic
-
Independent developers : Developers can focus on business logic and developing data (ViewModel), page designers can focus on design, use Expression Blend design surface and can easily generate the code xml
-
It can be tested : the interface is always more difficult to test, and the test can now be written for the ViewModel