InterviewSolution
| 1. |
What do you mean by MVVM (Model View ViewModel)? |
|
Answer» MVVM (Model-View-ViewModel) is a pattern that is used extensively by the Windows Presentation Framework (WPF) for building applications. MVVM is not mandatory to create WPF applications, but knowing about it can simplify the process of building WPF applications. This method allows developers and designers to work together without a great deal of technical difficulty by utilizing the capabilities of the WPF platform. There are three main components of MVVM as shown below:
By calling the public methods in the Model classes, the ViewModel interacts with the Model. Model data is collected and sent to the View. Using WPF's data-binding and COMMAND features, the View interacts with the ViewModel. The ViewModel implements commands that are EXECUTED whenever a user interacts with the view. |
|