Repository navigation
Closed
Description
Summary
Implement SplitMenuFlyoutItem from WinUI 3, which provides a menu flyout item with a split-button design: a primary action button and a secondary button that opens a submenu.
Motivation
SplitMenuFlyoutItem enables scenarios where a menu item needs both a direct action and a set of related sub-options - similar to how SplitButton works but within flyout menus. This is commonly used for actions like "Save" (primary) with "Save As...", "Save All" as sub-options, or "Paste" with "Paste Special" variants.
Currently, achieving this requires workarounds with custom templates or nested flyouts.
API Surface
Class
SplitMenuFlyoutItem— inherits fromMenuFlyoutItem, implementsISubMenuOwner
Properties
| Property | Type | Description |
|---|---|---|
Items |
IList<MenuFlyoutItemBase> |
Collection of submenu items (read-only, content property) |
SubMenuPresenterStyle |
Style |
Style applied to the submenu's flyout presenter |
SubMenuItemStyle |
Style |
Style applied to individual submenu items |
Inherited from MenuFlyoutItem
Text,Icon,Clickevent,Command/CommandParameter,KeyboardAcceleratorTextOverride
Automation
SplitMenuFlyoutItemAutomationPeer— supportsIInvokeProvider(primary action) andIExpandCollapseProvider(submenu)
Usage Example
<MenuFlyout>
<SplitMenuFlyoutItem Text="Save" Icon="Save" Click="Save_Click">
<MenuFlyoutItem Text="Save As..." Click="SaveAs_Click" />
<MenuFlyoutItem Text="Save All" Click="SaveAll_Click" />
</SplitMenuFlyoutItem>
<MenuFlyoutSeparator />
<MenuFlyoutItem Text="Exit" />
</MenuFlyout>Implementation Notes
- Split-button template with two
ButtonBaseparts: primary action button and secondary chevron button that opens the submenu - Uses
CascadingMenuHelperfor submenu positioning and cascading behavior (consistent withMenuFlyoutSubItem) - Full keyboard navigation: arrow keys between buttons, Enter/Space to activate, Escape to close
- Fluent theme resources for divider brush, backgrounds, and visual states
- Supports mixed content in submenu:
MenuFlyoutItem,ToggleMenuFlyoutItem,MenuFlyoutSeparator
Activity
MartinZikmund commentedon Apr 7, 2026
Repro generator
This issue was classified as not reproducible with a code sample or test.
Reason: This is a feature request for a new control (
SplitMenuFlyoutItem) that does not exist anywhere in the Uno Platform codebase — not even as a[NotImplemented]stub. There is no existing behavior to reproduce or verify with a runtime test or manual sample. Any code referencing this API would fail to compile. This is an implementation tracking issue rather than a bug report.