|
2 | 2 | x:Class="Files.Settings"
|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 |
| - xmlns:UILib="using:Microsoft.UI.Xaml.Controls" |
6 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
7 | 6 | xmlns:local="using:Files"
|
8 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 8 | + xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
9 | 9 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
10 | 10 | mc:Ignorable="d">
|
11 | 11 |
|
12 | 12 | <Grid>
|
13 |
| - <UILib:NavigationView |
| 13 | + <muxc:NavigationView |
14 | 14 | x:Name="SettingsPane"
|
15 | 15 | IsBackButtonVisible="Collapsed"
|
16 | 16 | IsSettingsVisible="False"
|
17 | 17 | ItemInvoked="NavigationView_ItemInvoked"
|
18 |
| - PaneDisplayMode="Left"> |
19 |
| - <UILib:NavigationView.MenuItems> |
20 |
| - <UILib:NavigationViewItem Content="Personalization" IsSelected="True"> |
21 |
| - <UILib:NavigationViewItem.Icon> |
| 18 | + PaneDisplayMode="LeftCompact"> |
| 19 | + <muxc:NavigationView.MenuItems> |
| 20 | + <muxc:NavigationViewItem Content="Personalization" IsSelected="True"> |
| 21 | + <muxc:NavigationViewItem.Icon> |
22 | 22 | <FontIcon Glyph="" />
|
23 |
| - </UILib:NavigationViewItem.Icon> |
24 |
| - </UILib:NavigationViewItem> |
25 |
| - <UILib:NavigationViewItem Content="Page Layouts" Visibility="Collapsed"> |
26 |
| - <UILib:NavigationViewItem.Icon> |
| 23 | + </muxc:NavigationViewItem.Icon> |
| 24 | + </muxc:NavigationViewItem> |
| 25 | + <muxc:NavigationViewItem Content="Page Layouts" Visibility="Collapsed"> |
| 26 | + <muxc:NavigationViewItem.Icon> |
27 | 27 | <FontIcon Glyph="" />
|
28 |
| - </UILib:NavigationViewItem.Icon> |
29 |
| - </UILib:NavigationViewItem> |
30 |
| - <UILib:NavigationViewItem Content="Preferences"> |
31 |
| - <UILib:NavigationViewItem.Icon> |
| 28 | + </muxc:NavigationViewItem.Icon> |
| 29 | + </muxc:NavigationViewItem> |
| 30 | + <muxc:NavigationViewItem Content="Preferences"> |
| 31 | + <muxc:NavigationViewItem.Icon> |
32 | 32 | <FontIcon Glyph="" />
|
33 |
| - </UILib:NavigationViewItem.Icon> |
34 |
| - </UILib:NavigationViewItem> |
35 |
| - <UILib:NavigationViewItem Content="About"> |
36 |
| - <UILib:NavigationViewItem.Icon> |
| 33 | + </muxc:NavigationViewItem.Icon> |
| 34 | + </muxc:NavigationViewItem> |
| 35 | + <muxc:NavigationViewItem Content="About"> |
| 36 | + <muxc:NavigationViewItem.Icon> |
37 | 37 | <FontIcon Glyph="" />
|
38 |
| - </UILib:NavigationViewItem.Icon> |
39 |
| - </UILib:NavigationViewItem> |
40 |
| - </UILib:NavigationView.MenuItems> |
| 38 | + </muxc:NavigationViewItem.Icon> |
| 39 | + </muxc:NavigationViewItem> |
| 40 | + </muxc:NavigationView.MenuItems> |
41 | 41 | <Frame x:Name="SettingsContentFrame" />
|
42 |
| - </UILib:NavigationView> |
| 42 | + </muxc:NavigationView> |
| 43 | + <VisualStateManager.VisualStateGroups> |
| 44 | + <VisualStateGroup> |
| 45 | + <VisualState> |
| 46 | + <VisualState.StateTriggers> |
| 47 | + <AdaptiveTrigger MinWindowWidth="{x:Bind SettingsPane.CompactModeThresholdWidth}" /> |
| 48 | + </VisualState.StateTriggers> |
| 49 | + <VisualState.Setters> |
| 50 | + <Setter Target="SettingsPane.PaneDisplayMode" Value="Left" /> |
| 51 | + </VisualState.Setters> |
| 52 | + </VisualState> |
| 53 | + </VisualStateGroup> |
| 54 | + </VisualStateManager.VisualStateGroups> |
43 | 55 | </Grid>
|
44 | 56 | </Page>
|
0 commit comments