wpf-to-winui3-migration

microsoft · Other

将 PowerToys 模块从 WPF 迁移到 WinUI 3(Windows App SDK)的指南。适用于迁移 WPF 代码、转换 WPF XAML 为 WinUI、将 System.Windows 命名空间替换为 Microsoft.UI.Xaml、更新 Dispatcher 为 DispatcherQueue、用 ThemeResource 替换 DynamicResource、将 imaging APIs 从 System.Windows.Media.Imaging 迁移到 Windows.Graphics.Imaging、转换 WPF Window 为 WinUI Window、将 .resx 迁移到 .resw 资源、将自定义 Observable/RelayCommand 迁移到 CommunityToolkit.Mvvm 源生成器、处理 WPF-UI(Lepo)到 WinUI 原生控件迁移,或修复迁移后的安装程序/构建流水线问题。关键词:WPF、WinUI、WinUI3、迁移、移植、转换、命名空间、XAML、Dispatcher、DispatcherQueue、imaging、BitmapImage、Window、ContentDialog、ThemeResource、DynamicResource、ResourceLoader、resw、resx、CommunityToolkit、ObservableProperty、WPF-UI、SizeToContent、AppWindow、SoftwareBitmap。

Guide for migrating PowerToys modules from WPF to WinUI 3 (Windows App SDK). Use when asked to migrate WPF code, convert WPF XAML to WinUI, replace System.Windows namespaces with Microsoft.UI.Xaml, update Dispatcher to DispatcherQueue, replace DynamicResource with ThemeResource, migrate imaging APIs from System.Windows.Media.Imaging to Windows.Graphics.Imaging, convert WPF Window to WinUI Window, migrate .resx to .resw resources, migrate custom Observable/RelayCommand to CommunityToolkit.Mvvm source generators, handle WPF-UI (Lepo) to WinUI native control migration, or fix installer/build pipeline issues after migration. Keywords: WPF, WinUI, WinUI3, migration, porting, convert, namespace, XAML, Dispatcher, DispatcherQueue, imaging, BitmapImage, Window, ContentDialog, ThemeResource, DynamicResource, ResourceLoader, resw, resx, CommunityToolkit, ObservableProperty, WPF-UI, SizeToContent, AppWindow, SoftwareBitmap.

npx skills add https://github.com/microsoft/PowerToys --skill wpf-to-winui3-migration

星标 134321 · 安装量 0

GitHub · SkillBox 全部技能