A brief introduction to WPF MVVM

The difference between C# abstract class and interface-Wood Wolf-Blog Park https://www.cnblogs.com/itsone/p/10318207.html

The main features of WPF technology is data-driven the UI , so using WPF technology development process is data-centric is, WPF provides data binding mechanism , when the data changes, WPF automatically notifies you to update the UI. 

MVVM  is Model, View, ViewModel.

Model needs to inherit INotifyPropertyChange (property modification notification)

ViewModel is responsible for business logic, connecting View and Model

The controls on the View are bound to model and command (command)

Note: The data binding binding implements the events of the INotifyPropertyChange interface.

The MVVM framework implements two-way data binding, that is, View and Model two-way binding. The final implementation contains four parts: Model, Command, View, and ViewModel.


Introduction to WPF Self-study (10) A brief introduction to WPF MVVM-before dusk and after dawn-博客园

Guess you like

Origin blog.csdn.net/txpp520/article/details/108590539