dotnet-wpf-mvvm

Migrates WinForms or WPF projects to MVVM with CommunityToolkit.Mvvm and WPF-UI.

8|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/j0ruge/skills_commands_manager --skill dotnet-wpf-mvvm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-wpf-mvvm
Source: https://github.com/j0ruge/skills_commands_manager/tree/main/plugins/dotnet-wpf/skills/dotnet-wpf-mvvm
Command: npx skills add https://github.com/j0ruge/skills_commands_manager --skill dotnet-wpf-mvvm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates WinForms or plain WPF projects to MVVM architecture using CommunityToolkit.Mvvm and WPF-UI, enabling clean separation of concerns, testability, and scalable UI patterns.

Core Features & Use Cases

  • Provides a structured migration workflow: convert UI to MVVM, wire DI, and enable navigation with WPF-UI.
  • Templates and guidelines for creating ViewModels with CommunityToolkit.Mvvm (ObservableProperty, RelayCommand) and for binding Views.
  • Guidance for migrating code-behind logic, integrating services, and enabling test coverage.

Quick Start

Install the required packages, configure DI and WPF-UI navigation, and progressively migrate each screen to MVVM by binding to ViewModels.

Frequently Asked Questions about dotnet-wpf-mvvm

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

FAQPage Schema
How do I migrate WinForms to WPF MVVM without breaking existing logic?

To migrate WinForms to WPF MVVM, progressively convert each screen by moving UI logic into ViewModels. Use CommunityToolkit.Mvvm for ObservableProperty and RelayCommand, wire up dependency injection, and bind Views to achieve clean separation of concerns.

What's the best way to add MVVM to an existing WPF code-behind project?

Adding MVVM to WPF code-behind involves extracting UI logic into partial class ViewModels using CommunityToolkit.Mvvm. You replace event handlers with RelayCommand, implement ObservableProperty for bindings, and integrate dependency injection for testability.

Does WPF MVVM migration work with WPF-UI for navigation?

Yes, WPF MVVM migration supports WPF-UI integration for navigation. You configure dependency injection and WPF-UI navigation during setup, enabling structured view-switching and scalable UI patterns while maintaining clean separation of concerns.

Can I use CommunityToolkit.Mvvm for dependency injection and bindings in WPF?

CommunityToolkit.Mvvm is fully supported for WPF bindings and dependency injection. It provides source generators for ObservableProperty and RelayCommand, allowing you to wire DI and bind Views to ViewModels without boilerplate code.

Why convert WPF code-behind to MVVM architecture?

Converting WPF code-behind to MVVM architecture enables clean separation of concerns, testability, and scalable UI patterns. It migrates tangled UI event logic into testable ViewModels using CommunityToolkit.Mvvm and dependency injection.

Do I need to install specific packages for WPF MVVM migration?

Yes, you need to install required packages like CommunityToolkit.Mvvm and WPF-UI. After installation, configure dependency injection, set up navigation, and progressively migrate each screen to MVVM by binding to ViewModels.