This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class KeyboardAcceleratorWorkaround | |
| { | |
| public static void CreateShadowAccelerators(this MenuBar menuBar, UIElement target) | |
| { | |
| foreach (var menu in menuBar.Items) | |
| { | |
| ProcessItems(menu.Items, target); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <muxc:MenuBar> | |
| <muxc:MenuBarItem Title="Test Menu"> | |
| <MenuFlyoutItem Text="Test Command" Command="{x:Bind TestCommand}"> | |
| <MenuFlyoutItem.KeyboardAccelerators> | |
| <KeyboardAccelerator Modifiers="Control" Key="T" /> | |
| </MenuFlyoutItem.KeyboardAccelerators> | |
| </MenuFlyoutItem> | |
| </muxc:MenuBarItem> | |
| </muxc:MenuBar> |