Mega Code Archive

 
Categories / C# / WPF
 

Menu item with shortcut and access key

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Top">         <Menu>           <MenuItem Header="_File">             <MenuItem Header="_New" InputGestureText="Ctrl+N" />           </MenuItem>         </Menu> </Page>