winui3-migration-guide

Solid

UWP-to-WinUI 3 migration reference. Maps legacy UWP APIs to correct Windows App SDK equivalents with before/after code snippets. Covers namespace changes, threading (CoreDispatcher to DispatcherQueue), windowing (CoreWindow to AppWindow), dialogs, pickers, sharing, printing, background tasks, and the most common Copilot code generation mistakes.

Code & Development 34,233 stars 4188 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# WinUI 3 Migration Guide Use this skill when migrating UWP apps to WinUI 3 / Windows App SDK, or when verifying that generated code uses correct WinUI 3 APIs instead of legacy UWP patterns. --- ## Namespace Changes All `Windows.UI.Xaml.*` namespaces move to `Microsoft.UI.Xaml.*`: | UWP Namespace | WinUI 3 Namespace | |--------------|-------------------| | `Windows.UI.Xaml` | `Microsoft.UI.Xaml` | | `Windows.UI.Xaml.Controls` | `Microsoft.UI.Xaml.Controls` | | `Windows.UI.Xaml.Media` | `Microsoft.UI.Xaml.Media` | | `Windows.UI.Xaml.Input` | `Microsoft.UI.Xaml.Input` | | `Windows.UI.Xaml.Data` | `Microsoft.UI.Xaml.Data` | | `Windows.UI.Xaml.Navigation` | `Microsoft.UI.Xaml.Navigation` | | `Windows.UI.Xaml.Shapes` | `Microsoft.UI.Xaml.Shapes` | | `Windows.UI.Composition` | `Microsoft.UI.Composition` | | `Windows.UI.Input` | `Microsoft.UI.Input` | | `Windows.UI.Colors` | `Microsoft.UI.Colors` | | `Windows.UI.Text` | `Microsoft.UI.Text` | | `Windows.UI.Core` | `Microsoft.UI.Dispatching` (for dispatcher) | --- ## Top 3 Most Common Copilot Mistakes ### 1. ContentDialog Without XamlRoot ```csharp // ❌ WRONG — Throws InvalidOperationException in WinUI 3 var dialog = new ContentDialog { Title = "Error", Content = "Something went wrong.", CloseButtonText = "OK" }; await dialog.ShowAsync(); ``` ```csharp // ✅ CORRECT — Set XamlRoot before showing var dialog = new ContentDialog { Title = "Error", Content = "Something went wrong.", CloseButtonText = "OK",...

Details

Author
github
Repository
github/awesome-copilot
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

winui3-migration-helper

Assist migration from WPF to WinUI 3 / Windows App SDK with code transformation and compatibility guidance

1,160 Updated today
a5c-ai
Data & Documents Listed

wpf-mentor

Senior WPF and .NET desktop application architect and mentor. ALWAYS use this skill for any WPF, XAML, or MVVM question — including data binding, commands, dependency properties, ObservableCollection, INotifyPropertyChanged, styles, templates, resource dictionaries, UserControls, custom controls, navigation, validation, converters, async/Dispatcher, multithreading, EF Core integration, API integration, DI, logging, performance, memory management, and real-world desktop architecture. Trigger on: "teach me WPF", "explain MVVM", "how do I bind in WPF", "what is a DependencyProperty", "WPF interview questions", "how to structure a WPF app", "WPF production patterns", or any desktop .NET UI question. Use even for casual questions like "how does binding work?" or "why use MVVM?".

0 Updated 1 weeks ago
heyashishsaini
Web & Frontend Listed

dotnet-wpf-design

Guia de design profissional para WPF/XAML com Fluent Design (WPF-UI). Catalogo de solucoes documentadas para problemas de layout, espacamento, tipografia, sizing de controles e dark theme. Use quando o usuario quiser: corrigir layout de formulario WPF; ajustar espacamento entre campos; resolver toolbar/header que rola junto com conteudo; aumentar tamanho de controles pequenos ou com texto cortado; melhorar respiro visual entre secoes; aplicar tipografia Fluent Design; usar cores corretas de dark theme; diagnosticar problemas de ScrollViewer aninhado; alinhar labels com campos; auditar qualidade visual de uma pagina XAML. Tambem use quando o usuario mencionar "design WPF", "layout XAML", "campos pequenos", "texto cortado", "espacamento", "respiro", "controle apertado", "formulario feio", "dark theme cores", "Fluent Design tokens", "ScrollViewer problema", ou "toolbar rola". NAO use para: setup inicial de projeto (use dotnet-desktop-setup), MVVM/ViewModel (use dotnet-wpf-mvvm), testes E2E (use dotnet-wpf-e2e-te

2 Updated 2 days ago
j0ruge
Web & Frontend Solid

fluentui-blazor

Guide for using the Microsoft Fluent UI Blazor component library (Microsoft.FluentUI.AspNetCore.Components NuGet package) in Blazor applications. Use this when the user is building a Blazor app with Fluent UI components, setting up the library, using FluentUI components like FluentButton, FluentDataGrid, FluentDialog, FluentToast, FluentNavMenu, FluentTextField, FluentSelect, FluentAutocomplete, FluentDesignTheme, or any component prefixed with "Fluent". Also use when troubleshooting missing providers, JS interop issues, or theming.

34,233 Updated today
github
Data & Documents Solid

winmd-api-search

Find and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI/ML, sensors, networking, etc. Discovers the right API for a task and retrieves full type details (methods, properties, events, enumeration values).

34,233 Updated today
github