windows-xaml-developer

Guide Windows XAML app development with MVVM, DI, and async UI patterns.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/JasonRowe/Wahoo-KICKR-Randomizer --skill windows-xaml-developer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: windows-xaml-developer
Source: https://github.com/JasonRowe/Wahoo-KICKR-Randomizer/tree/main/.gemini/skills/windows-xaml-developer
Command: npx skills add https://github.com/JasonRowe/Wahoo-KICKR-Randomizer --skill windows-xaml-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides best practices, architectural patterns, and library recommendations for building Windows desktop applications using XAML-based frameworks (WinUI 3 and WPF). It emphasizes the MVVM pattern, DI, and modern C# features.

Core Features & Use Cases

  • MVVM First: Keep UI logic in the ViewModel, minimizing code-behind and ensuring testability.
  • Dependency Injection: Use DI to manage services and ViewModels for scalable architectures.
  • Responsive UI & Modern Tooling: Avoid blocking the UI thread and leverage Roslyn source generators to reduce boilerplate.
  • Project Structure Guidance: Clear folder organization for scalable Windows apps (Views, ViewModels, Models, Services, Assets).
  • Use Case: Start a new WinUI 3 or WPF project with MVVM-ready scaffolding and DI wiring.

Quick Start

Create a new WinUI 3 or WPF project configured for MVVM and DI, then scaffold the initial Views and ViewModels.

Frequently Asked Questions about windows-xaml-developer

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

FAQPage Schema
How do I structure a WinUI 3 or WPF project using MVVM?▼

Structure your WinUI 3 or WPF project by organizing files into Views, ViewModels, Models, and Services folders. This MVVM-first approach minimizes code-behind, keeps UI logic in ViewModels for testability, and ensures scalable architecture.

What is the best way to use Dependency Injection in a Windows desktop app?▼

The best way to use Dependency Injection in Windows desktop apps is wiring services and ViewModels through a DI container. This manages dependencies cleanly, ensures scalable architecture, and reduces boilerplate when paired with modern tooling like Roslyn source generators.

How do I keep the UI thread responsive in WPF and WinUI 3 applications?▼

Keep the UI thread responsive in WPF and WinUI 3 applications by applying async UI patterns. Avoid blocking operations and leverage modern C# features to handle long-running tasks asynchronously without freezing the interface.

Does this architectural guide support both WinUI 3 and WPF frameworks?▼

Yes, this architectural guide supports both WinUI 3 and WPF frameworks. It provides best practices for building maintainable Windows desktop applications across both XAML-based frameworks, emphasizing MVVM, DI, and responsive UI design.

When do I need to minimize code-behind in Windows XAML apps?▼

You need to minimize code-behind in Windows XAML apps when applying the MVVM pattern. Keeping UI logic inside ViewModels rather than code-behind files ensures maximum testability and maintains a clean separation of concerns.

Can Roslyn source generators reduce boilerplate in MVVM Windows apps?▼

Yes, Roslyn source generators can reduce boilerplate in MVVM Windows apps. Leveraging this modern tooling automates repetitive code generation, allowing developers to focus on core logic while maintaining clean architecture.