Design an MVVM viewmodel for .NET MAUI

Visual Studio

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'll be 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.


  • Visual Studio 2022 with the .NET Multi-platform App UI development workload installed.
  • Familiarity with intermediate programming concepts like interfaces, classes, and attributes.
  • Ability to write XAML code.
  • Completed the previous module in this training path or understand how data binding works in .NET MAUI.