Home > Net >  The function of the MVVM to distinguish the problem
The function of the MVVM to distinguish the problem

Time:03-26

In simple terms, the MVC architecture:
Model is responsible for transmitting data structure definition (transmission of the data contains what items) and some of the instance methods such as tostring ()
The Controller is responsible for control data acquisition to the Model, and transmitted to the View
The View is responsible for displaying data, provide interactive (is called controller)

In MVP architecture, p to replace the function of controller, and access to the data Model, oneself only responsible for the Model and the VIew of the interaction of the

So the MVVM architecture, Model and the role of the ViewModel?
Look online most of the tutorial, the theory of the Model is responsible for data access, the ViewModel is responsible for the operation View provides the interaction, the View remain responsible for, according to the difference between the MVVM and MVP?
Seem to be all MVVM and MVP chart the ViewModel (Presenter) interact with the VIew, and the Model is a one-way invocation, the difference between the two framework?
Above, boring playing WPF sudden question, the research is not deep, to obtain a great god error, error are pointed out

CodePudding user response:

The difference between V (the viewmodel) again
  •  Tags:  
  • C#
  • Related