-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
🏁 Release: .NET 10Work items for the .NET 10 releaseWork items for the .NET 10 release📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.doc-enhancementImprove the current content [org]Improve the current content [org]
Description
.NET MAUI 8 includes keyboard accelerators for menu items. Keyboard accelerators enable you to assign keyboard shortcuts to any menu item, whether visible or not, and attach them to any UI element.
<ContentPage.MenuBarItems>
<MenuBarItem Text="File">
<MenuFlyoutItem Text="Preferences"
Command="{Binding PreferencesCommand}"
/>
</MenuBarItem>
<MenuBarItem Text="Products">
<MenuFlyoutItem
x:Name="AddProductMenu"
Text="Add Product"
Command="{Binding AddProductCommand}"
/>
<MenuBarItem Text="Add Product Category"/>
</MenuBarItem>
</ContentPage.MenuBarItems>MenuItem.SetAccelerator(AddProductMenu, Accelerator.FromString("Ctrl+A"));See dotnet/maui#16740 for the refactored API.
Metadata
Metadata
Assignees
Labels
🏁 Release: .NET 10Work items for the .NET 10 releaseWork items for the .NET 10 release📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.doc-enhancementImprove the current content [org]Improve the current content [org]