programming-examples/c-sharp/Others/MenuItems with Commands.cs

21 lines
776 B
C#
Raw Normal View History

2019-11-15 12:59:38 +01:00
MenuItems with Commands
<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="_Edit">
<MenuItem Header="_Undo" Command="Undo" />
<MenuItem Header="_Redo" Command="Redo"/>
<Separator />
<MenuItem Header="Cu_t" Command="Cut" />
<MenuItem Header="_Copy" Command="Copy" />
<MenuItem Header="_Paste" Command="Paste" />
<MenuItem Header="_Delete" Command="Delete" />
<Separator />
<MenuItem Header="Select _All" Command="SelectAll" />
</MenuItem>
</Menu>
</Page>