|
17 | 17 | Unloaded="Properties_Unloaded"
|
18 | 18 | mc:Ignorable="d">
|
19 | 19 | <Grid>
|
| 20 | + <Grid.Resources> |
| 21 | + <ResourceDictionary> |
| 22 | + <Thickness x:Key="NavigationViewTopPaneHeight">40</Thickness> |
| 23 | + <Thickness x:Key="TopNavigationViewTopNavGridMargin">0</Thickness> |
| 24 | + <SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="Transparent" /> |
| 25 | + </ResourceDictionary> |
| 26 | + </Grid.Resources> |
20 | 27 | <Grid.RowDefinitions>
|
21 | 28 | <RowDefinition Height="32" />
|
| 29 | + <RowDefinition Height="Auto" /> |
22 | 30 | <RowDefinition Height="*" />
|
23 | 31 | <RowDefinition Height="Auto" />
|
24 | 32 | </Grid.RowDefinitions>
|
25 | 33 |
|
26 | 34 | <TextBlock
|
27 | 35 | x:Uid="PropertiesTitleSecondary"
|
28 |
| - Margin="14,0,0,0" |
| 36 | + Margin="12,0,0,0" |
29 | 37 | VerticalAlignment="Center"
|
30 | 38 | Text="Properties" />
|
31 | 39 |
|
32 |
| - <ScrollViewer Grid.Row="1"> |
33 |
| - <StackPanel> |
34 |
| - <!-- Tabs --> |
35 |
| - <settings:SettingsBlockControl |
36 |
| - x:Name="TabGeneral" |
37 |
| - Title="{helpers:ResourceString Name=General}" |
38 |
| - HorizontalAlignment="Stretch" |
39 |
| - HorizontalContentAlignment="Stretch" |
40 |
| - Click="SettingsBlockControl_Click" |
41 |
| - IsExpanded="True" |
42 |
| - Tag="General"> |
43 |
| - <settings:SettingsBlockControl.Icon> |
44 |
| - <FontIcon Glyph="" /> |
45 |
| - </settings:SettingsBlockControl.Icon> |
46 |
| - <settings:SettingsBlockControl.ExpandableContent> |
47 |
| - <Frame /> |
48 |
| - </settings:SettingsBlockControl.ExpandableContent> |
49 |
| - </settings:SettingsBlockControl> |
50 |
| - |
51 |
| - <settings:SettingsBlockControl |
52 |
| - x:Name="TabSecurity" |
53 |
| - Title="{helpers:ResourceString Name=Security}" |
54 |
| - HorizontalAlignment="Stretch" |
55 |
| - HorizontalContentAlignment="Stretch" |
56 |
| - Click="SettingsBlockControl_Click" |
57 |
| - Tag="Security" |
58 |
| - Visibility="Collapsed"> |
59 |
| - <settings:SettingsBlockControl.Icon> |
60 |
| - <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" /> |
61 |
| - </settings:SettingsBlockControl.Icon> |
62 |
| - <settings:SettingsBlockControl.ExpandableContent> |
63 |
| - <Frame /> |
64 |
| - </settings:SettingsBlockControl.ExpandableContent> |
65 |
| - </settings:SettingsBlockControl> |
66 |
| - |
67 |
| - <settings:SettingsBlockControl |
68 |
| - x:Name="TabShorcut" |
69 |
| - Title="{helpers:ResourceString Name=Shortcut}" |
70 |
| - HorizontalAlignment="Stretch" |
71 |
| - HorizontalContentAlignment="Stretch" |
72 |
| - Click="SettingsBlockControl_Click" |
73 |
| - Tag="Shortcut" |
74 |
| - Visibility="Collapsed"> |
75 |
| - <settings:SettingsBlockControl.Icon> |
76 |
| - <FontIcon FontFamily="{StaticResource CustomGlyph}" Glyph="" /> |
77 |
| - </settings:SettingsBlockControl.Icon> |
78 |
| - <settings:SettingsBlockControl.ExpandableContent> |
79 |
| - <Frame /> |
80 |
| - </settings:SettingsBlockControl.ExpandableContent> |
81 |
| - </settings:SettingsBlockControl> |
| 40 | + <Grid |
| 41 | + Grid.Row="1" |
| 42 | + Height="42" |
| 43 | + Margin="14,12,14,12" |
| 44 | + HorizontalAlignment="Stretch" |
| 45 | + Background="{ThemeResource CardBackgroundFillColorDefaultBrush}" |
| 46 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 47 | + BorderThickness="1" |
| 48 | + CornerRadius="4"> |
| 49 | + <muxc:NavigationView |
| 50 | + x:Name="NavigationView" |
| 51 | + AllowDrop="False" |
| 52 | + IsBackButtonVisible="Collapsed" |
| 53 | + IsPaneOpen="False" |
| 54 | + IsPaneToggleButtonVisible="False" |
| 55 | + IsSettingsVisible="False" |
| 56 | + PaneDisplayMode="Top" |
| 57 | + SelectedItem="{x:Bind TabGeneral}" |
| 58 | + SelectionChanged="NavigationView_SelectionChanged" |
| 59 | + SelectionFollowsFocus="Disabled"> |
| 60 | + <!-- SelectionFollowsFocus disabled to fix #5387 --> |
82 | 61 |
|
83 |
| - <settings:SettingsBlockControl |
84 |
| - x:Name="TabLibrary" |
85 |
| - Title="{helpers:ResourceString Name=Library}" |
86 |
| - HorizontalAlignment="Stretch" |
87 |
| - HorizontalContentAlignment="Stretch" |
88 |
| - Click="SettingsBlockControl_Click" |
89 |
| - Tag="Library" |
90 |
| - Visibility="Collapsed"> |
91 |
| - <settings:SettingsBlockControl.Icon> |
92 |
| - <FontIcon Glyph="" /> |
93 |
| - </settings:SettingsBlockControl.Icon> |
94 |
| - <settings:SettingsBlockControl.ExpandableContent> |
95 |
| - <Frame /> |
96 |
| - </settings:SettingsBlockControl.ExpandableContent> |
97 |
| - </settings:SettingsBlockControl> |
98 |
| - |
99 |
| - <settings:SettingsBlockControl |
100 |
| - x:Name="TabDetails" |
101 |
| - Title="{helpers:ResourceString Name=Details}" |
102 |
| - HorizontalAlignment="Stretch" |
103 |
| - HorizontalContentAlignment="Stretch" |
104 |
| - Click="SettingsBlockControl_Click" |
105 |
| - Tag="Details" |
106 |
| - Visibility="Collapsed"> |
107 |
| - <settings:SettingsBlockControl.Icon> |
108 |
| - <FontIcon Glyph="" /> |
109 |
| - </settings:SettingsBlockControl.Icon> |
110 |
| - <settings:SettingsBlockControl.ExpandableContent> |
111 |
| - <Frame /> |
112 |
| - </settings:SettingsBlockControl.ExpandableContent> |
113 |
| - </settings:SettingsBlockControl> |
114 |
| - |
115 |
| - <settings:SettingsBlockControl |
116 |
| - x:Name="TabCustomization" |
117 |
| - Title="{helpers:ResourceString Name=Customization}" |
118 |
| - HorizontalAlignment="Stretch" |
119 |
| - HorizontalContentAlignment="Stretch" |
120 |
| - Click="SettingsBlockControl_Click" |
121 |
| - Tag="Customization" |
122 |
| - Visibility="Collapsed"> |
123 |
| - <settings:SettingsBlockControl.Icon> |
124 |
| - <FontIcon Glyph="" /> |
125 |
| - </settings:SettingsBlockControl.Icon> |
126 |
| - <settings:SettingsBlockControl.ExpandableContent> |
127 |
| - <Frame /> |
128 |
| - </settings:SettingsBlockControl.ExpandableContent> |
129 |
| - </settings:SettingsBlockControl> |
| 62 | + <!-- Tabs --> |
| 63 | + <muxc:NavigationView.MenuItems> |
| 64 | + <muxc:NavigationViewItem |
| 65 | + x:Name="TabGeneral" |
| 66 | + AccessKey="G" |
| 67 | + Content="{helpers:ResourceString Name=General}" |
| 68 | + CornerRadius="0" |
| 69 | + Tag="General"> |
| 70 | + <muxc:NavigationViewItem.Icon> |
| 71 | + <FontIcon Glyph="" /> |
| 72 | + </muxc:NavigationViewItem.Icon> |
| 73 | + </muxc:NavigationViewItem> |
| 74 | + <muxc:NavigationViewItem |
| 75 | + x:Name="TabSecurity" |
| 76 | + Content="{helpers:ResourceString Name=Security}" |
| 77 | + CornerRadius="0" |
| 78 | + Tag="Security"> |
| 79 | + <muxc:NavigationViewItem.Icon> |
| 80 | + <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" /> |
| 81 | + </muxc:NavigationViewItem.Icon> |
| 82 | + </muxc:NavigationViewItem> |
| 83 | + <muxc:NavigationViewItem |
| 84 | + x:Name="TabShorcut" |
| 85 | + AccessKey="S" |
| 86 | + Content="{helpers:ResourceString Name=Shortcut}" |
| 87 | + CornerRadius="0" |
| 88 | + Tag="Shortcut" |
| 89 | + Visibility="Collapsed"> |
| 90 | + <muxc:NavigationViewItem.Icon> |
| 91 | + <FontIcon FontFamily="{StaticResource CustomGlyph}" Glyph="" /> |
| 92 | + </muxc:NavigationViewItem.Icon> |
| 93 | + </muxc:NavigationViewItem> |
| 94 | + <muxc:NavigationViewItem |
| 95 | + x:Name="TabLibrary" |
| 96 | + AccessKey="L" |
| 97 | + Content="{helpers:ResourceString Name=Library}" |
| 98 | + CornerRadius="0" |
| 99 | + Tag="Library" |
| 100 | + Visibility="Collapsed"> |
| 101 | + <muxc:NavigationViewItem.Icon> |
| 102 | + <FontIcon Glyph="" /> |
| 103 | + </muxc:NavigationViewItem.Icon> |
| 104 | + </muxc:NavigationViewItem> |
| 105 | + <muxc:NavigationViewItem |
| 106 | + x:Name="TabDetails" |
| 107 | + AccessKey="D" |
| 108 | + Content="{helpers:ResourceString Name=Details}" |
| 109 | + CornerRadius="0" |
| 110 | + Tag="Details" |
| 111 | + Visibility="Collapsed"> |
| 112 | + <muxc:NavigationViewItem.Icon> |
| 113 | + <FontIcon Glyph="" /> |
| 114 | + </muxc:NavigationViewItem.Icon> |
| 115 | + </muxc:NavigationViewItem> |
| 116 | + <muxc:NavigationViewItem |
| 117 | + x:Name="TabCustomization" |
| 118 | + Content="{helpers:ResourceString Name=Customization}" |
| 119 | + CornerRadius="0" |
| 120 | + Tag="Customization" |
| 121 | + Visibility="Collapsed"> |
| 122 | + <muxc:NavigationViewItem.Icon> |
| 123 | + <FontIcon Glyph="" /> |
| 124 | + </muxc:NavigationViewItem.Icon> |
| 125 | + </muxc:NavigationViewItem> |
| 126 | + <muxc:NavigationViewItem |
| 127 | + x:Name="TabCompatibility" |
| 128 | + Content="{helpers:ResourceString Name=Compatibility}" |
| 129 | + CornerRadius="0" |
| 130 | + Tag="Compatibility" |
| 131 | + Visibility="Collapsed"> |
| 132 | + <muxc:NavigationViewItem.Icon> |
| 133 | + <FontIcon Glyph="" /> |
| 134 | + </muxc:NavigationViewItem.Icon> |
| 135 | + </muxc:NavigationViewItem> |
| 136 | + </muxc:NavigationView.MenuItems> |
| 137 | + </muxc:NavigationView> |
| 138 | + </Grid> |
130 | 139 |
|
131 |
| - <settings:SettingsBlockControl |
132 |
| - x:Name="TabCompatibility" |
133 |
| - Title="{helpers:ResourceString Name=Compatibility}" |
134 |
| - HorizontalAlignment="Stretch" |
135 |
| - HorizontalContentAlignment="Stretch" |
136 |
| - Click="SettingsBlockControl_Click" |
137 |
| - Tag="Compatibility" |
138 |
| - Visibility="Collapsed"> |
139 |
| - <settings:SettingsBlockControl.Icon> |
140 |
| - <FontIcon Glyph="" /> |
141 |
| - </settings:SettingsBlockControl.Icon> |
142 |
| - <settings:SettingsBlockControl.ExpandableContent> |
143 |
| - <Frame /> |
144 |
| - </settings:SettingsBlockControl.ExpandableContent> |
145 |
| - </settings:SettingsBlockControl> |
146 |
| - </StackPanel> |
| 140 | + <ScrollViewer Grid.Row="2"> |
| 141 | + <Frame x:Name="contentFrame" IsNavigationStackEnabled="False" /> |
147 | 142 | </ScrollViewer>
|
148 | 143 |
|
149 |
| - <Grid Grid.Row="2" Padding="8"> |
| 144 | + <Grid Grid.Row="3" Padding="12"> |
150 | 145 | <Grid.ColumnDefinitions>
|
151 | 146 | <ColumnDefinition Width="*" />
|
152 | 147 | <ColumnDefinition Width="*" />
|
|
0 commit comments