[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EV1ECRPBQVS3ZQCQM77084":3,"skill-same:01M7EV1ECRPBQVS3ZQCQM77084":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M7EV1ECRPBQVS3ZQCQM77084","winui-wpf-migration",null,"'Migrate WPF applications to WinUI 3 — namespace replacement (System.Windows → Microsoft.UI.Xaml), control mapping (DataGrid→ListView, WrapPanel→ItemsRepeater, TabControl→TabView), threading (Dispatcher→DispatcherQueue), imaging (System.Drawing→BitmapImage), M","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fdesktop\u002Fwinui-wpf-migration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: winui-wpf-migration\ndescription: \"'Migrate WPF applications to WinUI 3 — namespace replacement (System.Windows → Microsoft.UI.Xaml), control mapping (DataGrid→ListView, WrapPanel→ItemsRepeater, TabControl→TabView), threading (Dispatcher→DispatcherQueue), imaging (System.Drawing→BitmapImage), M\"\ncategory: desktop\nversion: 1.0.0\ndisable-model-invocation: false\nrisk: low\nsource:\n  repository: \"microsoft\u002Fwin-dev-skills\"\n  commit: \"3a8c5b2e\"\n  path: \"plugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-wpf-migration\u002FSKILL.md\"\n  license: \"MIT\"\n  imported_at: \"2026-09-20\"\n---\n### Migration Process\n\n#### Step 1: Audit the WPF Source\nBefore writing code, inventory WPF-specific APIs:\n```powershell\n# Find all WPF namespace usage\nSelect-String -Path (Get-ChildItem -Recurse -Filter \"*.cs\" | Where-Object { $_.FullName -notlike \"*\\obj\\*\" }) -Pattern \"System\\.Windows\\.\" | Select-Object -Property Filename, LineNumber, Line\n```\nList: WPF controls used, custom MVVM framework, imaging APIs, threading patterns, Win32 interop.\n\n#### Step 2: Create WinUI 3 Project and Align Namespaces\n```powershell\nwinapp new --name \u003CAppName> --template winui-mvvm --template-version latest --use-defaults\n```\nImmediately set `\u003CRootNamespace>` in `.csproj` to match the WPF namespace. Update `x:Class` in `App.xaml`, `MainWindow.xaml` and their code-behind files. Build to verify before porting any code.\n\n#### Step 3: Replace Namespaces\n\n| WPF | WinUI 3 |\n|-----|---------|\n| `System.Windows` | `Microsoft.UI.Xaml` |\n| `System.Windows.Controls` | `Microsoft.UI.Xaml.Controls` |\n| `System.Windows.Media` | `Microsoft.UI.Xaml.Media` |\n| `System.Windows.Input` | `Microsoft.UI.Xaml.Input` |\n| `System.Windows.Data` | `Microsoft.UI.Xaml.Data` |\n| `System.Windows.Threading.Dispatcher` | `Microsoft.UI.Dispatching.DispatcherQueue` |\n| `PresentationCore` \u002F `PresentationFramework` | Remove entirely |\n\n#### Step 4: Replace Controls\n\n| WPF Control | WinUI 3 Equivalent |\n|------------|-------------------|\n| `DataGrid` | `ListView` with Grid column headers |\n| `WrapPanel` | `ItemsRepeater` + `UniformGridLayout` |\n| `TabControl` | `TabView` |\n| `StatusBar` | `Grid` row at bottom with `TextBlock` elements |\n| `Menu` \u002F `MenuItem` | `MenuBar` \u002F `MenuBarItem` \u002F `MenuFlyoutItem` |\n| `ToolBar` | `CommandBar` |\n| `Expander` (custom) | `Expander` (built-in) |\n\n#### Step 5: Replace Threading\n```csharp\n\u002F\u002F WPF\nApplication.Current.Dispatcher.Invoke(() => { \u002F* UI work *\u002F });\n\n\u002F\u002F WinUI 3\ndispatcherQueue.TryEnqueue(() => { \u002F* UI work *\u002F });\n```\nGet via `DispatcherQueue.GetForCurrentThread()`. No `Application.Current.Dispatcher` in WinUI 3.\n\n#### Step 6: Replace Imaging\n**Critical:** `PresentationCore.dll` and `System.Windows.Media.Imaging` crash the WinUI XAML compiler. This is an architectural incompatibility — no workaround exists.\n- Remove ALL `System.Windows.Media.Imaging` references at migration start\n- Replace with `Windows.Graphics.Imaging` (WinRT) or `Microsoft.UI.Xaml.Media.Imaging.BitmapImage`\n- Do NOT add `\u003CUseWPF>true\u003C\u002FUseWPF>` — it silently corrupts the build\n- If heavy imaging code exists, migrate it early (step 2, not step 7)\n\n#### Step 7: Replace MVVM Framework\nDelete custom `ObservableObject`\u002F`RelayCommand`\u002F`DelegateCommand`. Use CommunityToolkit.Mvvm:\n- `INotifyPropertyChanged` base → `ObservableObject` with `[ObservableProperty]` partial properties\n- Custom `RelayCommand` → `[RelayCommand]` attribute\n- `{Binding}` → `{x:Bind Mode=OneWay}`\n- `DynamicResource` → `{ThemeResource}`\n\n#### Step 8: Replace Resources\n- `.resx` → `.resw` (copy + rename to `Strings\\en-us\\`)\n- `{x:Static}` → `x:Uid` for localized strings\n- `Properties.Resources.Key` → `ResourceLoader.GetString(\"Key\")`\n\n### Critical Rules\n\n- ❌ NEVER reference `PresentationCore`, `PresentationFramework`, or `System.Windows.Controls` assemblies\n- ❌ NEVER add `\u003CUseWPF>true\u003C\u002FUseWPF>` or `\u003CWindowsPackageType>None\u003C\u002FWindowsPackageType>`\n- ❌ NEVER delete `Package.appxmanifest`\n- ❌ NEVER overwrite `App.xaml` \u002F `App.xaml.cs` — merge WPF code into the WinUI 3 boilerplate\n- ✅ Always use `winapp run` to launch — never run the .exe directly\n- ✅ Break migration into file-level tasks — not one massive rewrite\n\n### Post-Migration Validation\n\n```powershell\n# Check for remaining WPF references (should return nothing)\nSelect-String -Path (Get-ChildItem -Recurse -Filter \"*.cs\" | Where-Object { $_.FullName -notlike \"*\\obj\\*\" }) -Pattern \"System\\.Windows\\.\"\n\n# Verify packaging preserved\nTest-Path \"Package.appxmanifest\"  # should be True\n\n# Build and run with the bundled analyzer\n.\\BuildAndRun.ps1\n```\n","### Migration Process\n\n#### Step 1: Audit the WPF Source\nBefore writing code, inventory WPF-specific APIs:\n```powershell\n# Find all WPF namespace usage\nSelect-String -Path (Get-ChildItem -Recurse -Filter \"*.cs\" | Where-Object { $_.FullName -notlike \"*\\obj\\*\" }) -Pattern \"System\\.Windows\\.\" | Select-Object -Property Filename, LineNumber, Line\n```\nList: WPF controls used, custom MVVM framework, imaging APIs, threading patterns, Win32 interop.\n\n#### Step 2: Create WinUI 3 Project and Align Namespaces\n```powershell\nwinapp new --name \u003CAppName> --template winui-mvvm --template-version latest --use-defaults\n```\nImmediately set `\u003CRootNamespace>` in `.csproj` to match the WPF namespace. Update `x:Class` in `App.xaml`, `MainWindow.xaml` and their code-behind files. Build to verify before porting any code.\n\n#### Step 3: Replace Namespaces\n\n| WPF | WinUI 3 |\n|-----|---------|\n| `System.Windows` | `Microsoft.UI.Xaml` |\n| `System.Windows.Controls` | `Microsoft.UI.Xaml.Controls` |\n| `System.Windows.Media` | `Microsoft.UI.Xaml.Media` |\n| `System.Windows.Input` | `Microsoft.UI.Xaml.Input` |\n| `System.Windows.Data` | `Microsoft.UI.Xaml.Data` |\n| `System.Windows.Threading.Dispatcher` | `Microsoft.UI.Dispatching.DispatcherQueue` |\n| `PresentationCore` \u002F `PresentationFramework` | Remove entirely |\n\n#### Step 4: Replace Controls\n\n| WPF Control | WinUI 3 Equivalent |\n|------------|-------------------|\n| `DataGrid` | `ListView` with Grid column headers |\n| `WrapPanel` | `ItemsRepeater` + `UniformGridLayout` |\n| `TabControl` | `TabView` |\n| `StatusBar` | `Grid` row at bottom with `TextBlock` elements |\n| `Menu` \u002F `MenuItem` | `MenuBar` \u002F `MenuBarItem` \u002F `MenuFlyoutItem` |\n| `ToolBar` | `CommandBar` |\n| `Expander` (custom) | `Expander` (built-in) |\n\n#### Step 5: Replace Threading\n```csharp\n\u002F\u002F WPF\nApplication.Current.Dispatcher.Invoke(() => { \u002F* UI work *\u002F });\n\n\u002F\u002F WinUI 3\ndispatcherQueue.TryEnqueue(() => { \u002F* UI work *\u002F });\n```\nGet via `DispatcherQueue.GetForCurrentThread()`. No `Application.Current.Dispatcher` in WinUI 3.\n\n#### Step 6: Replace Imaging\n**Critical:** `PresentationCore.dll` and `System.Windows.Media.Imaging` crash the WinUI XAML compiler. This is an architectural incompatibility — no workaround exists.\n- Remove ALL `System.Windows.Media.Imaging` references at migration start\n- Replace with `Windows.Graphics.Imaging` (WinRT) or `Microsoft.UI.Xaml.Media.Imaging.BitmapImage`\n- Do NOT add `\u003CUseWPF>true\u003C\u002FUseWPF>` — it silently corrupts the build\n- If heavy imaging code exists, migrate it early (step 2, not step 7)\n\n#### Step 7: Replace MVVM Framework\nDelete custom `ObservableObject`\u002F`RelayCommand`\u002F`DelegateCommand`. Use CommunityToolkit.Mvvm:\n- `INotifyPropertyChanged` base → `ObservableObject` with `[ObservableProperty]` partial properties\n- Custom `RelayCommand` → `[RelayCommand]` attribute\n- `{Binding}` → `{x:Bind Mode=OneWay}`\n- `DynamicResource` → `{ThemeResource}`\n\n#### Step 8: Replace Resources\n- `.resx` → `.resw` (copy + rename to `Strings\\en-us\\`)\n- `{x:Static}` → `x:Uid` for localized strings\n- `Properties.Resources.Key` → `ResourceLoader.GetString(\"Key\")`\n\n### Critical Rules\n\n- ❌ NEVER reference `PresentationCore`, `PresentationFramework`, or `System.Windows.Controls` assemblies\n- ❌ NEVER add `\u003CUseWPF>true\u003C\u002FUseWPF>` or `\u003CWindowsPackageType>None\u003C\u002FWindowsPackageType>`\n- ❌ NEVER delete `Package.appxmanifest`\n- ❌ NEVER overwrite `App.xaml` \u002F `App.xaml.cs` — merge WPF code into the WinUI 3 boilerplate\n- ✅ Always use `winapp run` to launch — never run the .exe directly\n- ✅ Break migration into file-level tasks — not one massive rewrite\n\n### Post-Migration Validation\n\n```powershell\n# Check for remaining WPF references (should return nothing)\nSelect-String -Path (Get-ChildItem -Recurse -Filter \"*.cs\" | Where-Object { $_.FullName -notlike \"*\\obj\\*\" }) -Pattern \"System\\.Windows\\.\"\n\n# Verify packaging preserved\nTest-Path \"Package.appxmanifest\"  # should be True\n\n# Build and run with the bundled analyzer\n.\\BuildAndRun.ps1\n```\n",{"name":5,"risk":24,"source":25,"version":30,"category":31,"description":7,"disable-model-invocation":20},"low",{"path":26,"commit":27,"license":15,"repository":28,"imported_at":29},"plugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-wpf-migration\u002FSKILL.md","3a8c5b2e","microsoft\u002Fwin-dev-skills","2026-09-20","1.0.0","desktop","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fdesktop\u002Fwinui-wpf-migration","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill winui-wpf-migration",{"tool":44,"command":45},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill winui-wpf-migration",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill winui-wpf-migration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fdesktop\u002Fwinui-wpf-migration\u002FSKILL.md",true,[],[53,61,68,75,82,89],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":60},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":60},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":60},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":60},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":60},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":60},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]