# dotnet-winui

The dotnet-winui Claude Code skill supports WinUI 3 app development. It covers project setup, XAML patterns, deployment choices, and moving apps from UWP.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 103 installs · ★ 92 repo stars
- Author: wshaddix
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-winui/SKILL.md
- Updated: 2026-02-27
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/dotnet-winui

## What it does

This skill guides WinUI 3 project setup and XAML development. It covers compiled bindings with `x:Bind`, deferred loading through `x:Load`, and MVVM integration using `CommunityToolkit.Mvvm`. Its scope also includes MSIX and unpackaged deployment, Windows integration, and UWP migration.

Project guidance includes `UseWinUI`, a Windows-specific target framework, and a generic host pattern for registering services and windows. The stated baseline is .NET 8.0+ with Windows App SDK 1.6+; examples target `net8.0-windows10.0.19041.0`. Desktop UI testing and WPF patterns belong to separate skills.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-winui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/dotnet-winui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/dotnet-winui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-winui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/dotnet-winui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-winui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/dotnet-winui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install wshaddix/dotnet-skills skills/dotnet-winui
```

2. **Manually: put the files in place**
- File: `.github/skills/dotnet-winui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-winui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-winui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/dotnet-winui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-winui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-winui/SKILL.md

## When to use it
- set up a WinUI 3 project with `UseWinUI` and a Windows target framework
- apply `x:Bind` and deferred loading with `x:Load`
- connect MVVM through `CommunityToolkit.Mvvm`
- choose between MSIX and unpackaged deployment
- move a UWP app to WinUI 3

## Example prompts
- Set up a WinUI 3 project with `UseWinUI` and `net8.0-windows10.0.19041.0`.
- Show how to use `x:Bind` and `x:Load` on a XAML page.
- Help migrate this UWP app to WinUI 3.

## Similar
- [winui](https://affpapa.org/en/nevibecode/plugins/winui.md) — plugin · ★ 514 repo stars
- [winui-app](https://affpapa.org/en/nevibecode/skills/winui-app.md) — skill · 3500 installs
- [dotnet-wpf](https://affpapa.org/en/nevibecode/rules/dotnet-wpf.md) — rule · ★ 41430 repo stars
- [dotnet-maui](https://affpapa.org/en/nevibecode/rules/dotnet-maui.md) — rule · ★ 41430 repo stars
- [dotnet-mcp](https://affpapa.org/en/nevibecode/mcp/dotnet-mcp.md) — MCP server · ★ 6 repo stars
- [avalonia](https://affpapa.org/en/nevibecode/skills/avalonia.md) — skill · 286 installs

From the same set: [wshaddix/dotnet-skills](https://affpapa.org/en/nevibecode/by/wshaddix/dotnet-skills.md) — 24 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
