-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
62 lines (60 loc) · 3.41 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="SimpleWindowsTool.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SimpleWindowsTool"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<RelativePanel Margin="0,0">
<NavigationView x:Name="MainPageNavigationView"
IsPaneOpen="True"
PaneDisplayMode="Auto"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True"
RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignBottomWithPanel="True"
ItemInvoked="MainPageNavigationView_ItemInvoked"
Background="{ThemeResource AppBarBackgroundThemeBrush}">
<NavigationView.MenuItems>
<!--To make sure the program navigate properly, tag NavigationViewItem with template ProgramName.PageName(Exclude .xaml), or the program can't navigate-->
<NavigationViewItem x:Name="NavigationViewItem_LiveTiles" Content="LiveTiles" Tag="SimpleWindowsTool.LiveTilesPage">
<NavigationViewItem.Icon>
<BitmapIcon x:Name="NavigationViewLiveTilesLogo"
UriSource="ms-appx:///Assets/LiveTilesLogo.png"
Width="40"
ShowAsMonochrome="False"/>
</NavigationViewItem.Icon>
</NavigationViewItem>
<NavigationViewItem x:Name="NavigationViewItem_WSATools" Content="WSA" Tag="SimpleWindowsTool.WSAToolsPage">
<NavigationViewItem.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/WSALogo.png"
Width="40"
ShowAsMonochrome="False"/>
</NavigationViewItem.Icon>
</NavigationViewItem>
<NavigationViewItem x:Name="NavigationViewItem_StorageManager" Content="Storage Manager" Tag="SimpleWindowsTool.StorageManagerPage">
<NavigationViewItem.Icon>
<FontIcon Glyph=""/>
</NavigationViewItem.Icon>
</NavigationViewItem>
</NavigationView.MenuItems>
<RelativePanel Margin="0,48,-8,-8" CornerRadius="8">
<Frame x:Name="ContentFrame" Margin="0"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True"
RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignBottomWithPanel="True">
</Frame>
</RelativePanel>
</NavigationView>
<Rectangle x:Name="AppTitleBar"
RelativePanel.RightOf="MainPageNavigationView"
RelativePanel.AlignRightWithPanel="True"
RelativePanel.AlignTopWithPanel="True"
Height="48"
Fill="{ThemeResource AppBarBackgroundThemeBrush}">
</Rectangle>
</RelativePanel>
</Window>