wpf-patterns

Guide WPF MVVM implementation in .NET 8–11 applications with code examples.

2|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill wpf-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wpf-patterns
Source: https://github.com/dimsour/dotnet-ai-toolkit/tree/main/plugins/dotnet-copilot/skills/wpf-patterns
Command: npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill wpf-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers implement common WPF design patterns, such as MVVM, for .NET 8–11 applications, ensuring clean code and maintainability.

Core Features & Use Cases

  • MVVM with CommunityToolkit.Mvvm: Supports MVVM architecture with compiled bindings and resources.
  • DataGrid, Resources, Behaviors: Offers guidance on implementing DataGrid, resources, and behaviors in WPF.
  • Generic Host Bootstrap: Demonstrates how to bootstrap applications with Generic Host.
  • ViewModel Implementation: Provides a sample ViewModel for loading orders with asynchronous operations.
  • Quick Start: Implement a basic WPF application with MVVM pattern.

Quick Start

Load the 'wpf-patterns' skill to get started with implementing MVVM in your WPF application.

Frequently Asked Questions about wpf-patterns

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

FAQPage Schema
How do I implement MVVM in a .NET 8 WPF application?

You can implement MVVM in WPF using the CommunityToolkit.Mvvm library, which supports compiled bindings and resources for .NET 8 applications. This approach ensures clean architecture and maintainable application code.

What is the best way to bootstrap a WPF application with Generic Host?

The best way to bootstrap a WPF application with Generic Host is by configuring dependency injection and application lifecycle management. This Skill demonstrates the setup process to integrate Generic Host into your WPF project.

Does CommunityToolkit.Mvvm support DataGrid and behaviors in WPF?

Yes, CommunityToolkit.Mvvm fully supports WPF DataGrid implementations and behaviors. This Skill provides specific guidance and code examples for integrating these UI components within your MVVM architecture.

How do I load orders asynchronously in a WPF ViewModel?

You can load orders asynchronously in a WPF ViewModel by implementing asynchronous operations within your CommunityToolkit.Mvvm ViewModels. This Skill provides a sample ViewModel demonstrating this specific asynchronous data loading pattern.

Can I use compiled bindings in WPF for .NET 11?

Yes, compiled bindings are fully supported in WPF for .NET 11. This Skill provides code examples and guidance for implementing compiled bindings to ensure type safety and improve application performance.