Mobile and desktop apps · Skill
Set up a WinUI 3 project
set-up-winui-project
Sets up a WinUI 3 project and a Fluent page, with the SDK and CLI checks, UseWinUI, theme brushes, and x:Bind. Use when the user wants a WinUI project, a Fluent page, or to confirm Microsoft.UI.Xaml.
Works with: Any AI Not yet model-tested; testing Jan 2027
Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works
Install in Claude Code, Cursor or Codex (optional)
Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.
Claude Code (all your projects)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o ~/'.claude/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o ~/'.claude/skills/set-up-winui-project/LICENSE.txt'Cursor (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o '.cursor/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o '.cursor/skills/set-up-winui-project/LICENSE.txt'Codex and other Agent Skills tools (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/raw' -o '.agents/skills/set-up-winui-project/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/set-up-winui-project/files/LICENSE.txt' -o '.agents/skills/set-up-winui-project/LICENSE.txt'
Or connect the whole library over MCP
Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):
{
"mcpServers": {
"theskillvault": {
"url": "https://theskillvault.ai/mcp"
}
}
}WinUI 3 is the XAML toolkit. A project that only references the platform SDK for notifications is not a WinUI project.
When to use
- The user wants a new WinUI 3 project or a Fluent page.
- Colors are raw literals instead of theme brushes.
- A TextBox edit does not reach the binding source.
When not to use
- The UI is WPF or WinForms. Keep that toolkit unless the person is porting.
- The need is an MSIX installer. That is a separate skill.
- The need is which control holds the main areas on a phone. That choice is a separate skill.
- The product is a website.
Steps
- Confirm the project sets UseWinUI or uses Microsoft.UI.Xaml. If it does not, stop here. Walk through the SDK check, then the page.
- Require the .NET SDK 8.0.100 or newer, and WinApp CLI 0.7 or newer. The CLI install is per user. Ask when Developer Mode or any install needs admin rights.
- Let
winapp newown the template. Do not install a template pack by hand. - Look up a control with
winapp find-ui, then confirm the API withwinapp find-apion the restored project. Do not invent a member. - Paint with ThemeResource brushes. Do not use a raw color literal. ThemeResource updates when the theme changes.
- On a page, x:Bind reads the page class. A two-way TextBox needs UpdateSourceTrigger=PropertyChanged or the source stays stale.
- Hand the installer to the MSIX skill. This skill stops at the project and the page.
Gotchas
- Do not include passwords, tokens, or private strings in sample XAML.
- Acrylic and a theme shadow have rendering rules. A shadow with no receiver looks clipped.
- Converter={x:Null} crashes x:Bind. Do not use that null converter.
- This is an independent how-to adapted from Microsoft's skill. It is not official documentation, and it was not built or run for this library.
Portability
If you use WPF, WinForms, Electron, or Tauri, keep that toolkit. If you use WinUI, the checks above are the path. Packaging for any of those toolkits is the MSIX skill.
Done when
- The project is actually WinUI 3, and the SDK and CLI meet the minimums.
- Brushes come from the theme, and the TextBox binding updates as the person edits.
- Admin-only installs were asked for, not assumed.
Example prompt
"Set up a WinUI 3 settings page with theme brushes and a two-way TextBox. Confirm UseWinUI and the CLI version first."
---
Adapted from "winui-design" and "winui-setup" by Microsoft Corporation and Contributors in microsoft/winappcli (MIT). See LICENSE.txt.
Bundled files
Licence
Adapted from Microsoft Corporation and Contributors (microsoft/winappcli, winui-design and winui-setup) (Copyright (c) Microsoft Corporation and Contributors.), MIT License. Adapted by TheSkillVault: rewritten as a short WinUI 3 starter (SDK, CLI, UseWinUI, theme brushes, x:Bind); dropped the control catalogue, sample-search command list, and packaging steps. Independent how-to, not official Microsoft documentation.
Licence: MIT License. Attribution when you reuse it: Based on work by Microsoft Corporation and Contributors (microsoft/winappcli, winui-design and winui-setup) (Copyright (c) Microsoft Corporation and Contributors., MIT License), https://github.com/microsoft/winappcli/tree/28d0dcdb2c65c2843541f4de7afb42dd27caa266/plugins/winui/agent-plugin/skills/winui-design; adapted by TheSkillVault, https://theskillvault.ai