|
20 | 20 | <RowDefinition Height="*" />
|
21 | 21 | </Grid.RowDefinitions>
|
22 | 22 | <!-- TO DO: Replace this with WinUI TitleBar once that ships. -->
|
23 |
| - <StackPanel Height="48" Orientation="Horizontal"> |
| 23 | + <Button |
| 24 | + x:Name="PaneToggleBtn" |
| 25 | + Width="48" |
| 26 | + HorizontalAlignment="Left" |
| 27 | + VerticalAlignment="Center" |
| 28 | + Click="PaneToggleBtn_Click" |
| 29 | + Style="{StaticResource PaneToggleButtonStyle}" /> |
| 30 | + <StackPanel |
| 31 | + x:Name="AppTitleBar" |
| 32 | + Grid.Row="0" |
| 33 | + Height="48" |
| 34 | + Orientation="Horizontal"> |
24 | 35 | <Image
|
25 | 36 | Width="16"
|
26 | 37 | Height="16"
|
27 |
| - Margin="16,0,0,0" |
28 | 38 | Source="ms-appx:///Assets/StoreLogo.png" />
|
29 | 39 | <TextBlock
|
30 | 40 | Margin="12,0,0,0"
|
|
35 | 45 | <NavigationView
|
36 | 46 | x:Name="NavView"
|
37 | 47 | Grid.Row="1"
|
| 48 | + DisplayModeChanged="NavView_DisplayModeChanged" |
38 | 49 | IsBackButtonVisible="Collapsed"
|
39 | 50 | IsSettingsVisible="False"
|
40 | 51 | ItemInvoked="NavView_ItemInvoked"
|
|
46 | 57 | <Thickness x:Key="NavigationViewHeaderMargin">15,0,0,0</Thickness>
|
47 | 58 | </NavigationView.Resources>
|
48 | 59 |
|
49 |
| - <NavigationView.Header> |
| 60 | + <NavigationView.MenuItems> |
| 61 | + <NavigationViewItem |
| 62 | + x:Uid="Settings_GeneralPage_NavigationViewItem_General" |
| 63 | + Icon="{ui:FontIcon Glyph=}" |
| 64 | + Tag="General" /> |
| 65 | + <NavigationViewItem |
| 66 | + x:Uid="Settings_GeneralPage_NavigationViewItem_Extensions" |
| 67 | + Icon="{ui:FontIcon Glyph=}" |
| 68 | + Tag="Extensions" /> |
| 69 | + </NavigationView.MenuItems> |
| 70 | + |
| 71 | + <Grid> |
| 72 | + <Grid.RowDefinitions> |
| 73 | + <RowDefinition Height="Auto" /> |
| 74 | + <RowDefinition Height="*" /> |
| 75 | + </Grid.RowDefinitions> |
| 76 | + |
50 | 77 | <BreadcrumbBar
|
51 | 78 | x:Name="NavigationBreadcrumbBar"
|
| 79 | + Grid.Row="0" |
52 | 80 | MaxWidth="1000"
|
| 81 | + Margin="16,0,0,0" |
53 | 82 | ItemClicked="NavigationBreadcrumbBar_ItemClicked"
|
54 | 83 | ItemsSource="{x:Bind BreadCrumbs, Mode=OneWay}">
|
55 | 84 | <BreadcrumbBar.ItemTemplate>
|
|
67 | 96 | </BreadcrumbBar.Resources>
|
68 | 97 | </BreadcrumbBar>
|
69 | 98 |
|
70 |
| - </NavigationView.Header> |
71 |
| - <NavigationView.MenuItems> |
72 |
| - <NavigationViewItem |
73 |
| - x:Uid="Settings_GeneralPage_NavigationViewItem_General" |
74 |
| - Icon="{ui:FontIcon Glyph=}" |
75 |
| - Tag="General" /> |
76 |
| - <NavigationViewItem |
77 |
| - x:Uid="Settings_GeneralPage_NavigationViewItem_Extensions" |
78 |
| - Icon="{ui:FontIcon Glyph=}" |
79 |
| - Tag="Extensions" /> |
80 |
| - </NavigationView.MenuItems> |
81 |
| - |
82 |
| - <Grid> |
83 |
| - <Grid.RowDefinitions> |
84 |
| - <RowDefinition Height="Auto" /> |
85 |
| - <RowDefinition Height="*" /> |
86 |
| - </Grid.RowDefinitions> |
87 |
| - |
88 | 99 | <Frame x:Name="NavFrame" Grid.Row="1" />
|
89 | 100 | </Grid>
|
90 | 101 | </NavigationView>
|
|
0 commit comments