dotnet-mvvm

Implement MVVM architecture in .NET apps using MVVM Toolkit patterns.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-mvvm-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-mvvm
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-mvvm
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-mvvm-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps .NET developers adopt the Model-View-ViewModel pattern to build clean, scalable UI layers with proper separation of concerns, data binding, commands, and testable ViewModels using MVVM Toolkit.

Core Features & Use Cases

  • Establishes a clear MVVM structure with ObservableProperty and RelayCommand patterns to reduce boilerplate.
  • Demonstrates DI, messaging, navigation, and validation to support real-world UI scenarios across WPF, MAUI, WinUI, and Blazor.
  • Provides guidance and examples for unit testing ViewModels to ensure maintainable UI logic.

Quick Start

Create a new .NET app and apply the MVVM Toolkit to scaffold a testable ProductListViewModel and bind it to a view.

Frequently Asked Questions about dotnet-mvvm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement MVVM in .NET to create testable ViewModels?

Implement MVVM in .NET by using the MVVM Toolkit to generate ObservableProperty patterns and RelayCommands, establishing ViewModels with robust data binding, dependency injection, and unit testing support.

Can I use the MVVM Toolkit with WPF, MAUI, and Blazor projects?

Yes, the MVVM Toolkit works across WPF, MAUI, WinUI, Uno Platform, Avalonia, and Blazor projects to enforce clean architecture, data binding, and testable UI logic consistently.

What is the best way to reduce boilerplate in .NET MVVM ViewModels?

Reduce boilerplate in .NET MVVM ViewModels by applying MVVM Toolkit source generators for ObservableProperty and RelayCommand patterns, automatically creating property notifications and command bindings without repetitive code.

How do I set up dependency injection and messaging for .NET ViewModels?

Set up dependency injection and messaging in .NET ViewModels by utilizing MVVM Toolkit patterns to support real-world UI scenarios including navigation, validation, and decoupled communication across views.

Does MVVM architecture support unit testing for UI logic in .NET applications?

MVVM architecture supports unit testing for UI logic in .NET applications by separating concerns into testable ViewModels, allowing validation and command execution to be verified independently from views.

When do I need ObservableProperty and RelayCommand in .NET data binding?

Use ObservableProperty and RelayCommand in .NET data binding when you need ViewModels to automatically notify views of property changes and handle user interactions through testable command patterns.