|
18 | 18 | <converters:DoubleToGridLengthConverter x:Key="DoubleToGridLengthConverter"/> |
19 | 19 | <converters:BooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter" IsInverted="True"/> |
20 | 20 | <converters:BooleanToScrollModeConverter x:Key="BooleanToScrollModeConverter" ScrollModeOnTrue="Auto" ScrollModeOnFalse="Enabled"/> |
21 | | - <converters:EnumToThicknessConverter x:Key="NavigationViewItemMarginConverter" ThicknessOnEnumDetected="0" ThicknessOnEnumNotDetected="12,0,12,0"/> |
| 21 | + <converters:EnumToThicknessConverter x:Key="NavigationViewItemMarginConverter" ThicknessOnEnumDetected="12,0,12,0" ThicknessOnEnumNotDetected="0"/> |
22 | 22 |
|
23 | 23 | <!--This top margin is the height of the custom TitleBar--> |
24 | 24 | <Thickness x:Key="NavigationViewContentMargin">0,46,0,0</Thickness> |
|
38 | 38 | <Setter Target="ContentScrollViewer.Padding" Value="12,0,12,0"/> |
39 | 39 | <Setter Target="ContentFrame.Padding" Value="0,0,0,0"/> |
40 | 40 | <Setter Target="HeaderTextBlock.Visibility" Value="Collapsed" /> |
| 41 | + <Setter Target="AppTitleLeftBorder.Width" Value="16" /> |
41 | 42 | </VisualState.Setters> |
42 | 43 | </VisualState> |
43 | 44 | <VisualState x:Name="NavigationViewExpanded"> |
44 | 45 | <VisualState.Setters> |
45 | | - <Setter Target="NavigationView.IsPaneToggleButtonVisible" Value="False" /> |
46 | | - <Setter Target="NavigationView.IsPaneVisible" Value="True" /> |
47 | | - <Setter Target="NavigationView.IsPaneOpen" Value="True" /> |
48 | | - <Setter Target="NavigationViewPaneHeader.Height" Value="38" /> |
49 | 46 | </VisualState.Setters> |
50 | 47 | </VisualState> |
51 | 48 | <VisualState x:Name="NavigationViewCompact"> |
52 | 49 | <VisualState.Setters> |
53 | | - <Setter Target="AppTitleLeftBorder.Width" Value="48" /> |
54 | 50 | </VisualState.Setters> |
55 | 51 | </VisualState> |
56 | 52 | <VisualState x:Name="NavigationViewMinimal"> |
57 | 53 | <VisualState.Setters> |
58 | | - <Setter Target="AppTitleLeftBorder.Width" Value="48" /> |
59 | 54 | <Setter Target="ContentScrollViewer.Padding" Value="12,12,12,0"/> |
60 | 55 | <Setter Target="ContentFrame.Padding" Value="0,0,0,0"/> |
61 | 56 | <Setter Target="HeaderTextBlock.Margin" Value="12,12,0,0" /> |
|
82 | 77 | <Border |
83 | 78 | Name="AppTitleLeftBorder" |
84 | 79 | Grid.Column="0" |
85 | | - Width="16"/> |
| 80 | + Width="48"/> |
86 | 81 |
|
87 | 82 | <StackPanel |
88 | 83 | Grid.Column="1" |
|
188 | 183 | PaneOpening="NavigationView_PaneOpening" |
189 | 184 | Loaded="NavigationView_Loaded"> |
190 | 185 |
|
191 | | - <muxc:NavigationView.PaneHeader> |
192 | | - <Border Name="NavigationViewPaneHeader" Height="0"/> |
193 | | - </muxc:NavigationView.PaneHeader> |
194 | | - |
195 | 186 | <muxc:NavigationView.AutoSuggestBox> |
196 | 187 | <AutoSuggestBox |
197 | 188 | Name="SearchBox" |
|
212 | 203 | <DataTemplate x:DataType="models:MatchedToolProviderViewData"> |
213 | 204 | <muxc:NavigationViewItem |
214 | 205 | Icon="{x:Bind Icon.Result, Mode=OneWay}" |
215 | | - Margin="{Binding ActualNavigationViewDisplayMode, ConverterParameter='Compact', Converter={StaticResource NavigationViewItemMarginConverter}}" |
| 206 | + Margin="{Binding ActualNavigationViewDisplayMode, ConverterParameter='Expanded', Converter={StaticResource NavigationViewItemMarginConverter}}" |
216 | 207 | AutomationProperties.Name="{x:Bind ToolProvider.AccessibleName}"> |
217 | 208 | <muxc:NavigationViewItem.ContextFlyout> |
218 | 209 | <MenuFlyout> |
|
0 commit comments