# microsoft/microsoft-ui-xaml architecture

> Architecture diagram of the GitHub repository microsoft/microsoft-ui-xaml, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/microsoft-ui-xaml
- Repository: https://github.com/microsoft/microsoft-ui-xaml

## Overview

WinUI is the UI layer and control library used by Windows app developers. The principal workflow is an app using WinUI controls and styles to present interactive experiences; this tree shows many domain-specific control implementations, but the excerpts do not establish most runtime wiring between them. The graph therefore groups the major capabilities without implying a control-to-control pipeline. The sampled InkToolbar manager excerpt does show its relationship to InkToolbar. README statements support the app-to-library relationship and product scope.

Main entry points: [`controls/dev/InkToolbar/ButtonManager.cpp`](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/ButtonManager.cpp) (Ink button manager), [`controls/dev/InkToolbar/InkToolbar.h`](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/InkToolbar.h) (Ink toolbar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_controls["Controls and styles"]
  node_winui["WinUI UI layer"]
  node_color["Color picker<br/>[ColorPicker.cpp]"]
  node_charts["Charts"]
  node_suggest["Auto suggest"]
  node_badge["Info badge<br/>[InfoBadge.cpp]"]
  node_infobar["Info bar<br/>[InfoBar.cpp]"]
end

subgraph group_collections["Collections and scrolling"]
  node_repeater["Repeater"]
  node_itemsview["Items view<br/>[ItemsView.cpp]"]
  node_shaping["Tabular shaping"]
  node_scrollpresenter["Scroll presenter"]
  node_scrollview["Scroll view"]
end

subgraph group_interaction["Input and media"]
  node_inktoolbar["Ink toolbar<br/>[InkToolbar.h]"]
  node_buttonmanager["Ink button manager<br/>[ButtonManager.cpp]"]
  node_inkcanvas["Ink canvas<br/>[InkCanvas.cpp]"]
  node_animatedicon["Animated icon<br/>[AnimatedIcon.cpp]"]
  node_visualplayer["Animated visual player"]
end

subgraph group_platform["XAML platform"]
  node_xamlcompiler["XAML compiler"]
  node_associative["Associative storage"]
  node_facade["Facade storage<br/>[FacadeStorage.cpp]"]
end

subgraph group_navigation["Navigation and feedback"]
  node_breadcrumb["Breadcrumb bar<br/>[BreadcrumbBar.cpp]"]
  node_pivot["Pivot headers"]
  node_commandflyout["Command flyout"]
end

node_app(("Windows app"))

node_app -->|"uses UI layer"| node_winui
node_buttonmanager -->|"references toolbar"| node_inktoolbar

click node_color "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/ColorPicker/ColorPicker.cpp"
click node_charts "https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/Charts"
click node_suggest "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AutoSuggestBox/AutoSuggestBoxHelper.cpp"
click node_badge "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InfoBadge/InfoBadge.cpp"
click node_infobar "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InfoBar/InfoBar.cpp"
click node_repeater "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/Repeater/ViewportManager.cpp"
click node_itemsview "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/ItemsView/ItemsView.cpp"
click node_shaping "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/TabularShaping/ShapingPipeline.cpp"
click node_scrollpresenter "https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/ScrollPresenter"
click node_scrollview "https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/ScrollView"
click node_inktoolbar "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/InkToolbar.h"
click node_buttonmanager "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/ButtonManager.cpp"
click node_inkcanvas "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkCanvas/InkCanvas.cpp"
click node_animatedicon "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AnimatedIcon/AnimatedIcon.cpp"
click node_visualplayer "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AnimatedVisualPlayer/AnimatedVisualPlayer.cpp"
click node_xamlcompiler "https://github.com/microsoft/microsoft-ui-xaml/blob/main/src/XamlCompiler/BuildTasks/CompileXamlInternal.cs"
click node_associative "https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/associative/inc/AssociativeStorage.h"
click node_facade "https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/elements/FacadeStorage.cpp"
click node_breadcrumb "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/Breadcrumb/BreadcrumbBar.cpp"
click node_pivot "https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/phone/lib/PivotHeaderManager.cpp"
click node_commandflyout "https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/CommandBarFlyout/CommandBarFlyout.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_winui,node_color,node_charts,node_suggest,node_badge,node_infobar toneBlue
class node_repeater,node_itemsview,node_shaping,node_scrollpresenter,node_scrollview toneAmber
class node_inktoolbar,node_buttonmanager,node_inkcanvas,node_animatedicon,node_visualplayer toneMint
class node_xamlcompiler,node_associative,node_facade toneRose
class node_breadcrumb,node_pivot,node_commandflyout,node_app toneIndigo
```

## Components

### Controls and styles

- **WinUI UI layer**
- [Color picker](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/ColorPicker/ColorPicker.cpp): `controls/dev/ColorPicker/ColorPicker.cpp`
- [Charts](https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/Charts): `controls/dev/Charts`
- [Auto suggest](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AutoSuggestBox/AutoSuggestBoxHelper.cpp): `controls/dev/AutoSuggestBox/AutoSuggestBoxHelper.cpp`
- [Info badge](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InfoBadge/InfoBadge.cpp): `controls/dev/InfoBadge/InfoBadge.cpp`
- [Info bar](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InfoBar/InfoBar.cpp): `controls/dev/InfoBar/InfoBar.cpp`

### Collections and scrolling

- [Repeater](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/Repeater/ViewportManager.cpp): `controls/dev/Repeater/ViewportManager.cpp`
- [Items view](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/ItemsView/ItemsView.cpp): `controls/dev/ItemsView/ItemsView.cpp`
- [Tabular shaping](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/TabularShaping/ShapingPipeline.cpp): `controls/dev/TabularShaping/ShapingPipeline.cpp`
- [Scroll presenter](https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/ScrollPresenter): `controls/dev/ScrollPresenter`
- [Scroll view](https://github.com/microsoft/microsoft-ui-xaml/tree/main/controls/dev/ScrollView): `controls/dev/ScrollView`

### Input and media

- [Ink toolbar](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/InkToolbar.h): `controls/dev/InkToolbar/InkToolbar.h`
- [Ink button manager](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkToolbar/ButtonManager.cpp): `controls/dev/InkToolbar/ButtonManager.cpp`
- [Ink canvas](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/InkCanvas/InkCanvas.cpp): `controls/dev/InkCanvas/InkCanvas.cpp`
- [Animated icon](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AnimatedIcon/AnimatedIcon.cpp): `controls/dev/AnimatedIcon/AnimatedIcon.cpp`
- [Animated visual player](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/AnimatedVisualPlayer/AnimatedVisualPlayer.cpp): `controls/dev/AnimatedVisualPlayer/AnimatedVisualPlayer.cpp`

### XAML platform

- [XAML compiler](https://github.com/microsoft/microsoft-ui-xaml/blob/main/src/XamlCompiler/BuildTasks/CompileXamlInternal.cs): `src/XamlCompiler/BuildTasks/CompileXamlInternal.cs`
- [Associative storage](https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/associative/inc/AssociativeStorage.h): `dxaml/xcp/components/associative/inc/AssociativeStorage.h`
- [Facade storage](https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/xcp/components/elements/FacadeStorage.cpp): `dxaml/xcp/components/elements/FacadeStorage.cpp`

### Navigation and feedback

- [Breadcrumb bar](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/Breadcrumb/BreadcrumbBar.cpp): `controls/dev/Breadcrumb/BreadcrumbBar.cpp`
- [Pivot headers](https://github.com/microsoft/microsoft-ui-xaml/blob/main/dxaml/phone/lib/PivotHeaderManager.cpp): `dxaml/phone/lib/PivotHeaderManager.cpp`
- [Command flyout](https://github.com/microsoft/microsoft-ui-xaml/blob/main/controls/dev/CommandBarFlyout/CommandBarFlyout.cpp): `controls/dev/CommandBarFlyout/CommandBarFlyout.cpp`

### Other components

- **Windows app**

## Connections

- Windows app → WinUI UI layer: uses UI layer (evidence: `README.md`)
- Ink button manager → Ink toolbar: references toolbar (evidence: `controls/dev/InkToolbar/ButtonManager.cpp`)
