Design an MVVM viewmodel for .NET MAUI
Learn about the MVVM design pattern and how it can separate your business logic and user interface code. Learn how viewmodels are designed and why they're an important part of the pattern.
Learning objectives
By the end of this module, you're able to:
- Identify when to use the Model-View-ViewModel (MVVM) pattern.
- Use a viewmodel to drive visual behavior.
- Improve code testability through data-bindable properties.
Prerequisites
- Visual Studio 2022 with the .NET MAUI workload
- Optional: Local installations Visual Studio Code, the .NET SDK with .NET MAUI workload, and the .NET MAUI Extension for Visual Studio Code
- Familiarity with intermediate programming concepts like interfaces, classes, and attributes.
- Ability to write Extensible Application Markup Language (XAML) code.
- Completed the previous module in this training path or understand how data binding works in .NET Multi-platform App UI (MAUI).