Skip to content

Create a "classic menu" control #981

@deltakosh

Description

@deltakosh

Things to consider:

  • Accelerator (shortcuts) support
  • Leverage existing MenuFlyout if possible
  • Provide binding support (ICommand?)

We could start from something like this:

<CommandBar HorizontalAlignment="Center" VerticalAlignment="Center" OverflowButtonVisibility="Auto"> <AppBarButton Content="File"> <AppBarButton.Flyout> <MenuFlyout Placement="Bottom"> <MenuFlyoutSubItem Text="New"> <MenuFlyoutItem Text="Project" /> <MenuFlyoutItem Text="Solution" /> </MenuFlyoutSubItem> </MenuFlyout> </AppBarButton.Flyout> </AppBarButton> <AppBarButton Content="Edit"> <AppBarButton.Flyout> <MenuFlyout Placement="Bottom"> <MenuFlyoutSubItem Text="Go to"> <MenuFlyoutItem Text="Go to project" /> <MenuFlyoutItem Text="Go to line" /> </MenuFlyoutSubItem> <MenuFlyoutSeparator /> <MenuFlyoutItem Text="Undo" Icon="Undo" /> </MenuFlyout> </AppBarButton.Flyout> </AppBarButton> <AppBarButton Content="View" /> </CommandBar> 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions