-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
78 lines (70 loc) · 3.64 KB
/
MainPage.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<Page
x:Class="FileEx.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FileEx"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Windows.UI.Xaml.Controls"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Page.Resources>
</Page.Resources>
<!--<Grid>
<GridView
ItemsSource="{x:Bind FileItems}"
IsItemClickEnabled="True"
ItemClick="FilesGridView_ItemClick"
ItemTemplate="{StaticResource FileItemTemplate}"
x:Name="filesGridView"
/>
</Grid>-->
<!--<muxc:NavigationView x:Name="NavView"
Loaded="NavView_Loaded"
ItemInvoked="NavView_ItemInvoked"
BackRequested="NavView_BackRequested">-->
<muxc:NavigationView x:Name="NavView"
Loaded="NavView_Loaded"
ItemInvoked="NavView_ItemInvoked"
BackRequested="NavView_BackRequested">
<muxc:NavigationView.MenuItems>
<muxc:NavigationViewItem Tag="home" Icon="Home" Content="Home"/>
<muxc:NavigationViewItemSeparator/>
<muxc:NavigationViewItemHeader x:Name="MainPagesHeader"
Content="Main pages"/>
<muxc:NavigationViewItem Tag="music" Icon="Audio" Content="Music"/>
<muxc:NavigationViewItem Tag="documents" Icon="Audio" Content="Documents"/>
<muxc:NavigationViewItem Tag="videos" Icon="Audio" Content="Videos"/>
<muxc:NavigationViewItem Tag="vault" Icon="Audio" Content="Vault"/>
</muxc:NavigationView.MenuItems>
<muxc:NavigationView.AutoSuggestBox>
<!-- See AutoSuggestBox documentation for
more info about how to implement search. -->
<!--<AutoSuggestBox x:Name="NavViewSearchBox" PlaceholderText="Find files..." TextChanged="searchBox_TextChanged" QueryIcon="Find"/>-->
<AutoSuggestBox x:Name="NavViewSearchBox" PlaceholderText="Find files..." QueryIcon="Find"/>
</muxc:NavigationView.AutoSuggestBox>
<Grid>
<!--<Frame Grid.Row="1" x:Name="ContentFrame" Padding="12,0,12,24" IsTabStop="True"
NavigationFailed="ContentFrame_NavigationFailed"/>-->
<Frame Grid.Row="1" x:Name="ContentFrame" Padding="12,0,12,24" IsTabStop="True"/>
</Grid>
</muxc:NavigationView>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
<VisualState>
<VisualState.StateTriggers>
<AdaptiveTrigger
MinWindowWidth="{x:Bind NavView.CompactModeThresholdWidth}"/>
</VisualState.StateTriggers>
<VisualState.Setters>
<!-- Remove the next 3 lines for left-only navigation. -->
<Setter Target="NavView.PaneDisplayMode" Value="Top"/>
<Setter Target="NavViewSearchBox.Width" Value="200"/>
<Setter Target="MainPagesHeader.Visibility" Value="Collapsed"/>
<!--Leave the next line for left-only navigation.-->
<Setter Target="ContentFrame.Padding" Value="24,0,24,24"/>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Page>