Model-View-ViewModel (MVVM) pattern as an architectural pattern
Last updated
Last updated
© Ice Tea Group LLC, All Rights Reserved.
The MVVM pattern is a common architectural approach in WPF applications. It separates application logic (Model), the user interface (View), and binding logic (ViewModel)
Model represents the business logic and data of the application. It is independent of the user interface and does not know how the data is presented. View is the user interface and describes how the data is displayed. It mainly consists of XAML and defines the layout and visual elements of the application. It is bound to the ViewModel. Examples of view content are XAML files that define layouts and UI elements such as Buttons, Text Boxes, and Lists. The ViewModel acts as a link between the View and Model. It contains the binding logic and commands that enable interaction between the user interface and the model. The ViewModel presents the Model's data in a form suitable for binding to the View and responds to user interactions by executing commands. It implements the INotifyPropertyChanged
interface to send notifications of data changes to the View and contains commands to process user actions.
The goal is to migrate without fundamentally changing the application layers.