-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
44 lines (28 loc) · 1.36 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="NavigationViewKeyboardAcceleratorsTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:NavigationViewKeyboardAcceleratorsTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<NavigationView ItemInvoked="NavigationView_ItemInvoked">
<NavigationView.MenuItems>
<NavigationViewItem Content="Item 1"
x:Name="Item1"/>
<NavigationViewItem Content="Item 2"
x:Name="Item2"/>
<NavigationViewItem SelectsOnInvoked="False" Content="Keyboard accelarator button">
<NavigationViewItem.KeyboardAccelerators>
<KeyboardAccelerator Key="N"
Modifiers="Control"/>
</NavigationViewItem.KeyboardAccelerators>
</NavigationViewItem>
</NavigationView.MenuItems>
<StackPanel>
<TextBlock Text="How many times have ItemInvoked been called"/>
<TextBlock x:Name="ItemInvokedCount"/>
</StackPanel>
</NavigationView>
</Window>