[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79F9C2J36K7FC8XBMETKW4R":3,"skill-same:01M79F9C2J36K7FC8XBMETKW4R":59},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M79F9C2J36K7FC8XBMETKW4R","winui-design",null,"Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light\u002FDark\u002FHigh Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs, migrating desktop UI to WinUI, or choosing between WinUI controls\u002Fpatterns. Also use when asked to search WinUI samples, find a WinUI Gallery or Community Toolkit example, or find a control that does something.","BumpyClock\u002Fagent-templates","BumpyClock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1883824?v=4","01M79EW0FDP9MFXH1FKH800S7T","Aditya Sharma","01M79EW0G27TTKZWTFQ8W5HVB4",2,"MIT","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fwinui-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: winui-design\ndescription: \"Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light\u002FDark\u002FHigh Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs, migrating desktop UI to WinUI, or choosing between WinUI controls\u002Fpatterns. Also use when asked to search WinUI samples, find a WinUI Gallery or Community Toolkit example, or find a control that does something.\"\n---\n\n\n\n## Search samples before writing XAML\n\nWinApp CLI 0.6+ provides grounded control and sample discovery through `winapp find-ui`. **Front-load lookups, then code**:\n\n```powershell\nwinapp find-ui \"\u003Cfocused feature>\"                    # compact matches + scenario IDs\nwinapp find-ui --id \u003Cscenario-id>                    # full XAML\u002FC# + prerequisite notes\nwinapp find-ui --id \u003Cid-1> --id \u003Cid-2> --json        # batch, structured output\nwinapp find-ui --list                                # browse all default-source scenarios\nwinapp find-ui \"\u003Cfeature>\" --refresh                 # force a corpus refresh\n```\n\nDefault search covers the WinUI Gallery, Windows Community Toolkit, and curated core patterns. Reactor's C#-only\u002FMVU samples are opt-in with `--source reactor`; use them only for Reactor projects. The Gallery\u002FToolkit\u002FReactor corpus is fetched and cached by WinApp CLI, while core patterns work offline.\n\n## App-shape anchors\n\nPick the closest shipping app silhouette before laying out a page:\n\n| App type | Anchor controls | Reference apps |\n|----------|-----------------|----------------|\n| Settings \u002F config tool | `NavigationView` Left + `SettingsCard` \u002F `SettingsExpander` | Windows Settings, Slack |\n| Document \u002F session editor | `TabView` + full-bleed content, light chrome | Windows Terminal, VS Code, Notepad |\n| Hierarchical browser | `TreeView` + `ListView` + `BreadcrumbBar` | File Explorer, Outlook |\n| Developer tool \u002F dashboard | `NavigationView` + card layout | Dev Home, GitHub Desktop |\n| Single-purpose utility | Mode switcher + compact grid | Calculator, Snipping Tool |\n| Media \u002F canvas \u002F hero | `Grid` with hero surface, floating commands, **no** `NavigationView` | Photos, Spotify, Clipchamp |\n\n## Reach-for-this control map\n\nBefore writing XAML, map the requirement to a platform control. These mappings exist to short-circuit cross-framework instincts (WPF `DataGrid`, web `\u003Cselect>`, HTML `\u003Cinput type=date>`):\n\n- **Navigation:** 2–7 sections → `NavigationView`; document\u002Fsession tabs → `TabView`; breadcrumb trail → `BreadcrumbBar`; 2–3 modes → `SelectorBar`.\n- **Data display:** Vertical list → `ListView`; tiles\u002Fgrid → `GridView` or `ItemsRepeater` + `UniformGridLayout`; hierarchy → `TreeView`; **tabular → `ListView` with a `Grid`-based `ItemTemplate` and a header `Grid` above** (WinUI has no `DataGrid`; don't default to `CommunityToolkit.WinUI.Controls.DataGrid` — its columns can't use `x:Bind`); master-detail → `ListView` + detail `Grid`.\n- **Input:** Text → `TextBox`; number → `NumberBox`; search → `AutoSuggestBox`; date → `CalendarDatePicker`; boolean → `ToggleSwitch`; pick one from 2–3 → `RadioButtons`; pick one from 4+ → `ComboBox`.\n- **Feedback:** Blocking decision → `ContentDialog`; contextual action → `Flyout` \u002F `MenuFlyout`; onboarding \u002F hint → `TeachingTip`; inline status \u002F async progress → `InfoBar`; system notification → `AppNotification`.\n\nIf the mapping above doesn't fit, run `winapp find-ui \"\u003Cintent>\"` before improvising.\n\n## Window sizing (WinUI 3 specifics)\n\n> **WinUI 3 has no `SizeToContent`.** Without an explicit size, Windows defaults the main window to ~1024×768 — oversized for most utilities. Size it in `MainWindow`'s constructor.\n\n**Rubric.** Width = widest row + 48 padding, rounded up to nearest 20. Height = 32 (titlebar) + Σ(row heights) + Σ(spacing) + 48 padding, rounded up to 20. Round up — clipped content is a worse failure than a slightly-wide window. Sanity ranges (derive yours from the rubric):\n\n- Single-purpose utility → ~440–560 wide\n- Form \u002F single-page tool → ~600–800 wide, ~640–800 tall\n- Multi-pane (nav + content) → ~1100–1300 wide, ~720–840 tall\n- Document \u002F canvas \u002F media editor → 1280+ wide\n\n`AppWindow.Resize` takes **physical pixels**, not DIPs — multiply by the monitor's DPI scale. `XamlRoot.RasterizationScale` is null in the constructor and stale after `AppWindow.Move`, so `[DllImport] GetDpiForWindow` is the cleanest path:\n\n```csharp\nusing Microsoft.UI;\nusing Microsoft.UI.Windowing;\nusing System.Runtime.InteropServices;\nusing Windows.Graphics;\n\npublic sealed partial class MainWindow : Window\n{\n    [DllImport(\"user32.dll\")]\n    private static extern uint GetDpiForWindow(IntPtr hWnd);\n\n    public MainWindow()\n    {\n        InitializeComponent();\n        var hwnd  = Win32Interop.GetWindowFromWindowId(AppWindow.Id);\n        var scale = GetDpiForWindow(hwnd) \u002F 96.0;\n        \u002F\u002F widthDip \u002F heightDip come from the rubric above — derive, don't copy.\n        AppWindow.Resize(new SizeInt32((int)(widthDip * scale), (int)(heightDip * scale)));\n    }\n}\n```\n\nDon't size the window by setting `Width`\u002F`Height` on the root `Grid` — that clips content, not the window.\n\n## XAML landmines (the things you'll otherwise ship broken)\n\n### `x:Bind` defaults to `OneTime`\n\n```xml\n\u003C!-- ❌ silently never updates -->\n\u003CTextBlock Text=\"{x:Bind Vm.Status}\" \u002F>\n\u003C!-- ✅ -->\n\u003CTextBlock Text=\"{x:Bind Vm.Status, Mode=OneWay}\" \u002F>\n```\n\n### `TextBox` two-way needs `UpdateSourceTrigger=PropertyChanged`\n\n```xml\n\u003CTextBox Text=\"{x:Bind Vm.Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}\" \u002F>\n```\n\nDefault trigger resolves to `LostFocus` specifically for `TextBox.Text` (most other properties default to `PropertyChanged`). The VM is not updated per keystroke, and UIA keyboard-simulation tests (WinAppDriver `SendKeys`, etc.) that assert immediately after typing will see stale VM state until focus moves.\n\n### Attached properties from C# use static setters, not initializers\n\n```csharp\nusing Microsoft.UI.Xaml.Automation;\n\n\u002F\u002F ❌ WRONG — does not compile. CS0117: 'Button' does not contain a definition for 'AutomationProperties'.\n\u002F\u002F AutomationProperties is a static class of attached-property accessors, not an instance member.\nvar btn = new Button { AutomationProperties = { AutomationId = \"BtnSave\" } };\n\n\u002F\u002F ✅ CORRECT\nvar btn = new Button { Content = \"Save\" };\nAutomationProperties.SetAutomationId(btn, \"BtnSave\");\nAutomationProperties.SetName(btn, \"Save button\");\nGrid.SetRow(btn, 1);\nToolTipService.SetToolTip(btn, \"Save the current document\");\n```\n\n### `Converter={x:Null}` crashes `x:Bind` at runtime\n\n`{x:Bind}` requires `Converter` to be a `{StaticResource}` lookup. `Converter={x:Null}` compiles but the generated code calls `LookupConverter(\"\")`, which returns null, then dereferences it — you get `Resource Dictionary Key can only be String-typed` \u002F `NullReferenceException` on first activation of the binding. If you don't want a converter, omit the property entirely.\n\n### Prefer `x:Bind` static functions over `IValueConverter`\n\n```csharp\n\u002F\u002F MainPage.xaml.cs\npublic static Visibility BoolToVisibility(bool v) => v ? Visibility.Visible : Visibility.Collapsed;\npublic static Visibility InvertBoolToVisibility(bool v) => v ? Visibility.Collapsed : Visibility.Visible;\npublic static bool Not(bool v) => !v;\n```\n```xml\n\u003CTextBlock Visibility=\"{x:Bind local:MainPage.BoolToVisibility(Vm.IsLoading), Mode=OneWay}\" \u002F>\n\u003CButton   IsEnabled=\"{x:Bind local:MainPage.Not(Vm.IsLoading), Mode=OneWay}\" \u002F>\n```\n\n### Acrylic and `ThemeShadow` rendering rules\n\n- `BackgroundSizing` defaults to `InnerBorderEdge` on both `Border` and `Control`, which correctly clips acrylic to the inner stroke. The hazard is the opposite of intuition: don't *change* it to `OuterBorderEdge` on a bordered acrylic surface — that's what makes the material bleed past the stroke.\n- `ThemeShadow` casts a shadow from the caster's `Translation` Z. Microsoft's recommended elevations are `16` for tooltips, `32` for popup\u002Fflyout UI, `128` for dialogs — pick by surface type. For non-popup casters, add the surfaces it should land on to `ThemeShadow.Receivers`; otherwise the shadow has nothing to fall on and looks clipped.\n\n## Theming rules (short version)\n\n- `{ThemeResource ...}` at usage sites (updates on theme switch). `{StaticResource}` inside `ThemeDictionaries` for theme-local definitions; `SystemAccentColor` \u002F `SystemColor*` are the exceptions and stay `{ThemeResource}`.\n- Custom theme dictionaries cover `Light`, `Dark`, **and** `HighContrast` explicitly — never `Default`.\n- Name resources by purpose (`CardBackgroundBrush`, `DangerTextBrush`), not hue.\n- Light\u002FDark working ≠ High Contrast working. Test in a Contrast theme separately.\n- Never set `HighContrastAdjustment=\"None\"` unless your app already supplies system-aware brushes throughout.\n\n## Anti-patterns\n\n| ❌ Don't | ✅ Do instead |\n|---------|--------------|\n| Reflexively build every app as `NavigationView` Left | Pick the closest row in the silhouette table; hero \u002F document \u002F utility shapes are equally valid |\n| Treat brand colour or tinted backdrop as off-pattern | Overriding `SystemAccentColor` or using a tinted `DesktopAcrylicBackdrop` is how Microsoft's own first-party apps differentiate |\n| Tiny content island on an oversized window | Either size the window to the content (see *Window sizing*) or let content fill the available space |\n| Custom pill \u002F segmented tab switcher built by hand | `NavigationView` Top or `SelectorBar` |\n| Equal-width 50\u002F50 column split where one pane is structural | Stable size for the structural pane, flexible for content — only if a structural pane is part of the silhouette at all |\n| Hard-coded color literals (`#RRGGBB`, `White`) | `{ThemeResource}` brushes by semantic name |\n| `ScrollViewer` wrapped around a `ListView` \u002F `GridView` | The collection control already scrolls — give it a constrained height |\n| Custom `ControlTemplate` for a standard control | Built-in control + lightweight style overrides |\n| Placeholder text used as the only field label | Always provide a visible label |\n| Required commands hidden at small widths with no route | Overflow menu, secondary surface, or a responsive promotion rule |\n| Modal `ContentDialog` for non-blocking hints | `TeachingTip`, `InfoBar`, or inline status |\n| Destructive action (Delete \u002F Discard \u002F Reset) fired without confirmation | `ContentDialog` with verb-labelled primary action and `Cancel` secondary; surface item identity (name, count) in the body |\n| Custom list control when `ListView` \u002F `GridView` fits | Use the platform collection + virtualisation |\n\nBuild custom UI **only when all are true**: no platform\u002FGallery\u002FToolkit control fits; you'll implement keyboard, focus, UI Automation, theme resources, High Contrast, and responsive behaviour; you have specs for default\u002Fhover\u002Fpressed\u002Fdisabled\u002Fselected\u002Ffocused\u002Ferror states; you've tested with keyboard and a contrast theme.\n\n## References (load on demand)\n\n| File | Load when… |\n|------|-----------|\n| `references\u002Fbrushes-and-icons.md` | Looking up a brush key by purpose, picking between `Icon` \u002F `IconSource` slots, choosing among `FontIcon` \u002F `SymbolIcon` \u002F `PathIcon` \u002F etc. |\n| `references\u002Ftheme-accessibility.md` | Authoring theme dictionaries, custom brushes\u002Fstyles\u002Ftemplates, or High Contrast support. |\n| `references\u002Flayout-review.md` | Reviewing responsive behaviour, breakpoints, or empty\u002Floading\u002Ferror coverage on a data-driven page. |\n","## Search samples before writing XAML\n\nWinApp CLI 0.6+ provides grounded control and sample discovery through `winapp find-ui`. **Front-load lookups, then code**:\n\n```powershell\nwinapp find-ui \"\u003Cfocused feature>\"                    # compact matches + scenario IDs\nwinapp find-ui --id \u003Cscenario-id>                    # full XAML\u002FC# + prerequisite notes\nwinapp find-ui --id \u003Cid-1> --id \u003Cid-2> --json        # batch, structured output\nwinapp find-ui --list                                # browse all default-source scenarios\nwinapp find-ui \"\u003Cfeature>\" --refresh                 # force a corpus refresh\n```\n\nDefault search covers the WinUI Gallery, Windows Community Toolkit, and curated core patterns. Reactor's C#-only\u002FMVU samples are opt-in with `--source reactor`; use them only for Reactor projects. The Gallery\u002FToolkit\u002FReactor corpus is fetched and cached by WinApp CLI, while core patterns work offline.\n\n## App-shape anchors\n\nPick the closest shipping app silhouette before laying out a page:\n\n| App type | Anchor controls | Reference apps |\n|----------|-----------------|----------------|\n| Settings \u002F config tool | `NavigationView` Left + `SettingsCard` \u002F `SettingsExpander` | Windows Settings, Slack |\n| Document \u002F session editor | `TabView` + full-bleed content, light chrome | Windows Terminal, VS Code, Notepad |\n| Hierarchical browser | `TreeView` + `ListView` + `BreadcrumbBar` | File Explorer, Outlook |\n| Developer tool \u002F dashboard | `NavigationView` + card layout | Dev Home, GitHub Desktop |\n| Single-purpose utility | Mode switcher + compact grid | Calculator, Snipping Tool |\n| Media \u002F canvas \u002F hero | `Grid` with hero surface, floating commands, **no** `NavigationView` | Photos, Spotify, Clipchamp |\n\n## Reach-for-this control map\n\nBefore writing XAML, map the requirement to a platform control. These mappings exist to short-circuit cross-framework instincts (WPF `DataGrid`, web `\u003Cselect>`, HTML `\u003Cinput type=date>`):\n\n- **Navigation:** 2–7 sections → `NavigationView`; document\u002Fsession tabs → `TabView`; breadcrumb trail → `BreadcrumbBar`; 2–3 modes → `SelectorBar`.\n- **Data display:** Vertical list → `ListView`; tiles\u002Fgrid → `GridView` or `ItemsRepeater` + `UniformGridLayout`; hierarchy → `TreeView`; **tabular → `ListView` with a `Grid`-based `ItemTemplate` and a header `Grid` above** (WinUI has no `DataGrid`; don't default to `CommunityToolkit.WinUI.Controls.DataGrid` — its columns can't use `x:Bind`); master-detail → `ListView` + detail `Grid`.\n- **Input:** Text → `TextBox`; number → `NumberBox`; search → `AutoSuggestBox`; date → `CalendarDatePicker`; boolean → `ToggleSwitch`; pick one from 2–3 → `RadioButtons`; pick one from 4+ → `ComboBox`.\n- **Feedback:** Blocking decision → `ContentDialog`; contextual action → `Flyout` \u002F `MenuFlyout`; onboarding \u002F hint → `TeachingTip`; inline status \u002F async progress → `InfoBar`; system notification → `AppNotification`.\n\nIf the mapping above doesn't fit, run `winapp find-ui \"\u003Cintent>\"` before improvising.\n\n## Window sizing (WinUI 3 specifics)\n\n> **WinUI 3 has no `SizeToContent`.** Without an explicit size, Windows defaults the main window to ~1024×768 — oversized for most utilities. Size it in `MainWindow`'s constructor.\n\n**Rubric.** Width = widest row + 48 padding, rounded up to nearest 20. Height = 32 (titlebar) + Σ(row heights) + Σ(spacing) + 48 padding, rounded up to 20. Round up — clipped content is a worse failure than a slightly-wide window. Sanity ranges (derive yours from the rubric):\n\n- Single-purpose utility → ~440–560 wide\n- Form \u002F single-page tool → ~600–800 wide, ~640–800 tall\n- Multi-pane (nav + content) → ~1100–1300 wide, ~720–840 tall\n- Document \u002F canvas \u002F media editor → 1280+ wide\n\n`AppWindow.Resize` takes **physical pixels**, not DIPs — multiply by the monitor's DPI scale. `XamlRoot.RasterizationScale` is null in the constructor and stale after `AppWindow.Move`, so `[DllImport] GetDpiForWindow` is the cleanest path:\n\n```csharp\nusing Microsoft.UI;\nusing Microsoft.UI.Windowing;\nusing System.Runtime.InteropServices;\nusing Windows.Graphics;\n\npublic sealed partial class MainWindow : Window\n{\n    [DllImport(\"user32.dll\")]\n    private static extern uint GetDpiForWindow(IntPtr hWnd);\n\n    public MainWindow()\n    {\n        InitializeComponent();\n        var hwnd  = Win32Interop.GetWindowFromWindowId(AppWindow.Id);\n        var scale = GetDpiForWindow(hwnd) \u002F 96.0;\n        \u002F\u002F widthDip \u002F heightDip come from the rubric above — derive, don't copy.\n        AppWindow.Resize(new SizeInt32((int)(widthDip * scale), (int)(heightDip * scale)));\n    }\n}\n```\n\nDon't size the window by setting `Width`\u002F`Height` on the root `Grid` — that clips content, not the window.\n\n## XAML landmines (the things you'll otherwise ship broken)\n\n### `x:Bind` defaults to `OneTime`\n\n```xml\n\u003C!-- ❌ silently never updates -->\n\u003CTextBlock Text=\"{x:Bind Vm.Status}\" \u002F>\n\u003C!-- ✅ -->\n\u003CTextBlock Text=\"{x:Bind Vm.Status, Mode=OneWay}\" \u002F>\n```\n\n### `TextBox` two-way needs `UpdateSourceTrigger=PropertyChanged`\n\n```xml\n\u003CTextBox Text=\"{x:Bind Vm.Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}\" \u002F>\n```\n\nDefault trigger resolves to `LostFocus` specifically for `TextBox.Text` (most other properties default to `PropertyChanged`). The VM is not updated per keystroke, and UIA keyboard-simulation tests (WinAppDriver `SendKeys`, etc.) that assert immediately after typing will see stale VM state until focus moves.\n\n### Attached properties from C# use static setters, not initializers\n\n```csharp\nusing Microsoft.UI.Xaml.Automation;\n\n\u002F\u002F ❌ WRONG — does not compile. CS0117: 'Button' does not contain a definition for 'AutomationProperties'.\n\u002F\u002F AutomationProperties is a static class of attached-property accessors, not an instance member.\nvar btn = new Button { AutomationProperties = { AutomationId = \"BtnSave\" } };\n\n\u002F\u002F ✅ CORRECT\nvar btn = new Button { Content = \"Save\" };\nAutomationProperties.SetAutomationId(btn, \"BtnSave\");\nAutomationProperties.SetName(btn, \"Save button\");\nGrid.SetRow(btn, 1);\nToolTipService.SetToolTip(btn, \"Save the current document\");\n```\n\n### `Converter={x:Null}` crashes `x:Bind` at runtime\n\n`{x:Bind}` requires `Converter` to be a `{StaticResource}` lookup. `Converter={x:Null}` compiles but the generated code calls `LookupConverter(\"\")`, which returns null, then dereferences it — you get `Resource Dictionary Key can only be String-typed` \u002F `NullReferenceException` on first activation of the binding. If you don't want a converter, omit the property entirely.\n\n### Prefer `x:Bind` static functions over `IValueConverter`\n\n```csharp\n\u002F\u002F MainPage.xaml.cs\npublic static Visibility BoolToVisibility(bool v) => v ? Visibility.Visible : Visibility.Collapsed;\npublic static Visibility InvertBoolToVisibility(bool v) => v ? Visibility.Collapsed : Visibility.Visible;\npublic static bool Not(bool v) => !v;\n```\n```xml\n\u003CTextBlock Visibility=\"{x:Bind local:MainPage.BoolToVisibility(Vm.IsLoading), Mode=OneWay}\" \u002F>\n\u003CButton   IsEnabled=\"{x:Bind local:MainPage.Not(Vm.IsLoading), Mode=OneWay}\" \u002F>\n```\n\n### Acrylic and `ThemeShadow` rendering rules\n\n- `BackgroundSizing` defaults to `InnerBorderEdge` on both `Border` and `Control`, which correctly clips acrylic to the inner stroke. The hazard is the opposite of intuition: don't *change* it to `OuterBorderEdge` on a bordered acrylic surface — that's what makes the material bleed past the stroke.\n- `ThemeShadow` casts a shadow from the caster's `Translation` Z. Microsoft's recommended elevations are `16` for tooltips, `32` for popup\u002Fflyout UI, `128` for dialogs — pick by surface type. For non-popup casters, add the surfaces it should land on to `ThemeShadow.Receivers`; otherwise the shadow has nothing to fall on and looks clipped.\n\n## Theming rules (short version)\n\n- `{ThemeResource ...}` at usage sites (updates on theme switch). `{StaticResource}` inside `ThemeDictionaries` for theme-local definitions; `SystemAccentColor` \u002F `SystemColor*` are the exceptions and stay `{ThemeResource}`.\n- Custom theme dictionaries cover `Light`, `Dark`, **and** `HighContrast` explicitly — never `Default`.\n- Name resources by purpose (`CardBackgroundBrush`, `DangerTextBrush`), not hue.\n- Light\u002FDark working ≠ High Contrast working. Test in a Contrast theme separately.\n- Never set `HighContrastAdjustment=\"None\"` unless your app already supplies system-aware brushes throughout.\n\n## Anti-patterns\n\n| ❌ Don't | ✅ Do instead |\n|---------|--------------|\n| Reflexively build every app as `NavigationView` Left | Pick the closest row in the silhouette table; hero \u002F document \u002F utility shapes are equally valid |\n| Treat brand colour or tinted backdrop as off-pattern | Overriding `SystemAccentColor` or using a tinted `DesktopAcrylicBackdrop` is how Microsoft's own first-party apps differentiate |\n| Tiny content island on an oversized window | Either size the window to the content (see *Window sizing*) or let content fill the available space |\n| Custom pill \u002F segmented tab switcher built by hand | `NavigationView` Top or `SelectorBar` |\n| Equal-width 50\u002F50 column split where one pane is structural | Stable size for the structural pane, flexible for content — only if a structural pane is part of the silhouette at all |\n| Hard-coded color literals (`#RRGGBB`, `White`) | `{ThemeResource}` brushes by semantic name |\n| `ScrollViewer` wrapped around a `ListView` \u002F `GridView` | The collection control already scrolls — give it a constrained height |\n| Custom `ControlTemplate` for a standard control | Built-in control + lightweight style overrides |\n| Placeholder text used as the only field label | Always provide a visible label |\n| Required commands hidden at small widths with no route | Overflow menu, secondary surface, or a responsive promotion rule |\n| Modal `ContentDialog` for non-blocking hints | `TeachingTip`, `InfoBar`, or inline status |\n| Destructive action (Delete \u002F Discard \u002F Reset) fired without confirmation | `ContentDialog` with verb-labelled primary action and `Cancel` secondary; surface item identity (name, count) in the body |\n| Custom list control when `ListView` \u002F `GridView` fits | Use the platform collection + virtualisation |\n\nBuild custom UI **only when all are true**: no platform\u002FGallery\u002FToolkit control fits; you'll implement keyboard, focus, UI Automation, theme resources, High Contrast, and responsive behaviour; you have specs for default\u002Fhover\u002Fpressed\u002Fdisabled\u002Fselected\u002Ffocused\u002Ferror states; you've tested with keyboard and a contrast theme.\n\n## References (load on demand)\n\n| File | Load when… |\n|------|-----------|\n| `references\u002Fbrushes-and-icons.md` | Looking up a brush key by purpose, picking between `Icon` \u002F `IconSource` slots, choosing among `FontIcon` \u002F `SymbolIcon` \u002F `PathIcon` \u002F etc. |\n| `references\u002Ftheme-accessibility.md` | Authoring theme dictionaries, custom brushes\u002Fstyles\u002Ftemplates, or High Contrast support. |\n| `references\u002Flayout-review.md` | Reviewing responsive behaviour, breakpoints, or empty\u002Floading\u002Ferror coverage on a data-driven page. |\n",{"name":5,"description":7},"main","e24b64bdac040ad169ed16b14853eff1b20cd726","skills_archive\u002Fmerged-into-parent\u002Fwinui-design",0,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates","https:\u002F\u002Fgithub.com\u002FBumpyClock","2026-11-14 03:12:06",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add BumpyClock\u002Fagent-templates --skill winui-design",{"tool":37,"command":38},"bunx","bunx skills add BumpyClock\u002Fagent-templates --skill winui-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add BumpyClock\u002Fagent-templates --skill winui-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fwinui-design\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fbrushes-and-icons.md","REFERENCE","参考文档",12088,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fwinui-design\u002Freferences\u002Fbrushes-and-icons.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Flayout-review.md",2104,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fwinui-design\u002Freferences\u002Flayout-review.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Ftheme-accessibility.md",3082,"https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fmerged-into-parent\u002Fwinui-design\u002Freferences\u002Ftheme-accessibility.md",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M79FEE6E257MWVEBY43X0NVN","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M79FEB8GTJC6ZHDK67T40R20","workflow-from-chats","Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fworkflow-from-chats\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79FE7TMNGVZZ0M8NV4N0X6N","winui3-csharp-app","WinUI 3 \u002F Windows App SDK desktop apps in C#\u002FXAML. MVVM, bindings, navigation, Mica\u002FAcrylic, windowing, packaging, performance.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwinui3-csharp-app\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79FE31HY46BHN67CQGB7MVJ","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79FE0N7MGWDG8SCD60FWTV5","what-did-i-get-done","Summarize authored commits over a user-specified time period into a concise status update.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fwhat-did-i-get-done\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79FDYBJG9QNCQC0MMVBDT80","weekly-review","Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.","https:\u002F\u002Fgithub.com\u002FBumpyClock\u002Fagent-templates\u002Fblob\u002Fmain\u002Fskills_archive\u002Fweekly-review\u002FSKILL.md",[],[]]