Windows Presentation Foundation (WPF) Question:
What is MVVM pattern?
Answer:
MVVM pattern divides the UI code into 3 basic parts:
★ Model:
It represents a set of classes, which contain data received from databases.
★ View:
It is the code that agrees with the visual representation of the data.
★ ViewModel:
It is the layer that binds View and Model together. It presents this data in a manner, which is easy to understand. It also controls how View interacts with the application.
★ Model:
It represents a set of classes, which contain data received from databases.
★ View:
It is the code that agrees with the visual representation of the data.
★ ViewModel:
It is the layer that binds View and Model together. It presents this data in a manner, which is easy to understand. It also controls how View interacts with the application.
Previous Question | Next Question |
Explain the difference between Events and Commands in the MVVM model? | Explain the difference between DynamicResource and StaticResource? |