MVVM for Maintainability and Testability
When building XAML-based applications, one of the most important design patterns to learn is the MVVM pattern. MVVM provides a clear separation of concerns between the XAML markup in the view and the C# code in the View Model using data binding. With this separation comes ease of maintenance and testability. The View Model classes can be tested without taking a dependency on the underlying User Interface (UI) platform. For large teams, another benefit of this separation is that changing the XAML enables UI designers to work on the UI independently of developers who specialize in writing the business logic and the backend of the application.
In this chapter, you will learn about the following concepts:
- Fundamentals of the MVVM design pattern
- Popular MVVM frameworks
- Implementing MVVM in WinUI applications
- Handling View Model changes in the view
- Event handling in MVVM
- Streamline View Model implementations with the...