syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-menu
syncfusion-wpf-menu
VerifiedImplement Syncfusion WPF MenuAdv for hierarchical menus, context menus, and application menu bars. Use this when building nested menus, menus with icons, keyboard shortcuts, checkbox/radio button menu items, or command-bound menus in WPF. Covers ItemsSource data binding with HierarchicalDataTemplate, MenuItemSeparator, orientation, expand mode, animation, and theming.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/appearance.md | markdown | 2.7 KB |
| references/commands.md | markdown | 7.0 KB |
| references/data-binding.md | markdown | 5.1 KB |
| references/getting-started.md | markdown | 4.5 KB |
| references/menu-item-features.md | markdown | 6.8 KB |
| references/orientation-and-expand-mode.md | markdown | 3.3 KB |
references/appearance.md
View on GitHub# Appearance and Theming
## Themes via SfSkinManager
Apply a built-in Syncfusion visual style to `MenuAdv` using `SfSkinManager`:
```xaml
<syncfusion:MenuAdv syncfusion:SfSkinManager.VisualStyle="FluentLight"
Height="25" VerticalAlignment="Top">
<syncfusion:MenuItemAdv Header="File"/>
<syncfusion:MenuItemAdv Header="Edit"/>
</syncfusion:MenuAdv>
```
```csharp
using Syncfusion.SfSkinManager;
SfSkinManager.SetVisualStyle(menuAdv, VisualStyles.FluentLight);
```
**Supported styles:** `FluentLight`, `FluentDark`, `MaterialLight`, `MaterialDark`, `Office2019Colorful`, `Office2019Black`, `Office2019White`, `Windows11Light`, `Windows11Dark`, and others.
---
## Custom Themes via ThemeStudio
Create a custom branded theme using Syncfusion ThemeStudio and apply it to `MenuAdv`:
1. Open [Syncfusion ThemeStudio](https://ej2.syncfusion.com/themestudio/)
2. Customize colors, fonts, and sizes
3. Export and reference the generated resource dictionary in your app
4. Apply via `SfSkinManager` with your custom style name
---
## Animation Support
MenuAdv supports animation effects when submenus open and close. Animation is applied automatically as part of the control's built-in behavior and does not require explicit configuration.
If you need to disable or customize animation, override the control template via Expression Blend (see Blendability below).
---
## Keyboard Navigation
MenuAdv supports full keyboard navigation out of the box:
| Key | Action |
|---|---|
| `Arrow keys` | Move between menu items |
| `Enter` | Open submenu or execute item |
| `Escape` | Close submenu / close menu |
| `Alt` + underlined letter | Access menu item by access key |
| `Tab` | Move focus between items |
No configuration is required — keyboard navigation is built into the control.
---
## Blendability (Expression Blend Customization)
MenuAdv and `MenuItemAdv` support full template editing in **Expression Blend**:
1. Right-click `MenuAdv` in Blend → **Edit Template** → **Edit a Copy**
2. Customize the visual tree, colors, borders, and animations
3. Apply the custom `ControlTemplate` in your XAML resources
This allows pixel-level customization of the menu appearance beyond what themes provide.
---
## Gotchas
| Issue | Cause | Fix |
|---|---|---|
| Theme not applied | `SfSkinManager` assembly not referenced | Add reference to `Syncfusion.SfSkinManager.WPF` |
| Theme applies to app but not MenuAdv | Style set on wrong element | Set `SfSkinManager.VisualStyle` directly on the `MenuAdv` element or on the root `Window` |
| Custom template breaks keyboard nav | Template missing `KeyboardNavigation.TabNavigation` settings | Copy the default template first and modify incrementally |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |