What MVVM that? Advantages and MVVM

Disclaimer: If you have any objection to this article, then please write your comments in the article comments at. If you find this article interesting, please share and forward, or you can look at, you acknowledge and encouragement of our articles. Wish everyone in the programming this road, farther and farther. https://blog.csdn.net/weixin_44369568/article/details/91488922

MVVM

1. What MVVM that?

  1. MVVM is a Model-View-ViewModel shorthand
  2. It is essentially an improved version of MVC
  3. 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

  1. 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

  2. Reusability : You can view some of the logic in a ViewModel inside, so many view reuse this view logic

  3. 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

  4. It can be tested : the interface is always more difficult to test, and the test can now be written for the ViewModel

Guess you like

Origin blog.csdn.net/weixin_44369568/article/details/91488922