WinUI-Gallery
microsoft/WinUI-Gallery/AGENTS.md
Follow the repository architecture, build, accessibility, and coding guidance in .github/copilot-instructions.md. For the full sample-authoring guidance, including how little description text to use and where options and output go, see the gallery-control-samples skill in .github/skills/gallery-control-samples/SKILL.md.
What's in it
- Agent guidance
- Designing control samples
# Agent guidance Follow the repository architecture, build, accessibility, and coding guidance in `.github/copilot-instructions.md`. ## Designing control samples For the full sample-authoring guidance, including how little description text to use and where options and output go, see the `gallery-control-samples` skill in `.github/skills/gallery-control-samples/SKILL.md`. - Structure a control page as a learning progression that explains the control and its capabilities, not as one deep, application-specific scenario. - Begin with the simplest useful example, then add focused examples for distinct concepts such as configuration, states, input, events, data binding, selection, customization, and accessibility when they apply. - Make each `ControlExample` teach one clear idea. Its heading, UI, and code snippet should make that idea understandable without requiring context from another example. - Keep sample data, labels, and supporting models small, neutral, and reusable. Do not introduce business workflows, large domain models, or unrelated application infrastructure unless the control requires them. - Prefer several concise, logically separated examples over one comprehensive scenario that combines many features. - Add a scenario-based example only after the foundational concepts are covered and only when the scenario is the clearest way to demonstrate how multiple control capabilities work together.
More agent context in microsoft/WinUI-Gallery
2 other files this repository gives its agents.
Copilot instructions
Skill
- gallery-control-samples.github/skills/gallery-control-samples/SKILL.md
Discussion
Talked about elsewhere, linking to microsoft/WinUI-Gallery
- Can I use existing WinUI3 controls in MAUI project?
Stack Overflow · 8 votes · 1 answers · Jun 19, 2022
- WPF Gap: CollectionViewSource doesn't support all WPF scenarios
GitHub · microsoft/microsoft-ui-xaml · 19 reactions · 10 comments · Feb 23, 2021
- How can I remove the close button in WinUI 3?
Stack Overflow · 2 votes · Sep 15, 2025
- [Feature Request] New Navigation Bar to Mimic win ui Behavour In Shell
GitHub · dotnet/maui · 9 reactions · 4 comments · May 19, 2022
- How do I set newTab.Content = XAMLElement? (WinUI 3)
Stack Overflow · 1 votes · Jun 12, 2022
- Set default window icon from host executable during window creation
GitHub · microsoft/microsoft-ui-xaml · 6 reactions · 3 comments · Apr 3, 2026
- TabControl overlays Minimize, Maximize and Close button of window
Stack Overflow · 1 votes · 1 answers · Apr 21, 2022
- Menubar behavior regression – Breaks cross platform dropdown conventions
GitHub · microsoft/microsoft-ui-xaml · 5 reactions · 5 comments · Oct 7, 2023
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

