|
212 | 212 | <Setter Property="Background" Value="{ThemeResource NavigationViewItemBackground}" />
|
213 | 213 | <Setter Property="Foreground" Value="{ThemeResource NavigationViewItemForeground}" />
|
214 | 214 | <Setter Property="BorderThickness" Value="{ThemeResource NavigationViewToggleBorderThickness}" />
|
215 |
| - <Setter Property="Content" Value="" /> |
216 | 215 | <Setter Property="Template">
|
217 | 216 | <Setter.Value>
|
218 | 217 | <ControlTemplate TargetType="Button">
|
219 | 218 | <Grid
|
220 | 219 | x:Name="LayoutRoot"
|
| 220 | + MinWidth="{TemplateBinding MinWidth}" |
221 | 221 | Height="{TemplateBinding MinHeight}"
|
222 | 222 | Margin="{TemplateBinding Padding}"
|
223 | 223 | Background="{TemplateBinding Background}"
|
224 | 224 | HorizontalAlignment="Stretch">
|
| 225 | + <Grid.ColumnDefinitions> |
| 226 | + <ColumnDefinition Width="{ThemeResource PaneToggleButtonWidth}"/> |
| 227 | + <ColumnDefinition Width="*"/> |
| 228 | + </Grid.ColumnDefinitions> |
| 229 | + <Grid.RowDefinitions> |
| 230 | + <RowDefinition Height="{ThemeResource PaneToggleButtonHeight}"/> |
| 231 | + </Grid.RowDefinitions> |
225 | 232 |
|
226 | 233 | <VisualStateManager.VisualStateGroups>
|
227 | 234 | <VisualStateGroup x:Name="CommonStates">
|
|
271 | 278 | </VisualStateGroup>
|
272 | 279 | </VisualStateManager.VisualStateGroups>
|
273 | 280 |
|
274 |
| - <Grid Width="{TemplateBinding MinWidth}" HorizontalAlignment="Left"> |
275 |
| - <Viewbox |
276 |
| - x:Name="IconHost" |
277 |
| - Width="16" |
278 |
| - Height="16" |
279 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
280 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
281 |
| - AutomationProperties.AccessibilityView="Raw"> |
| 281 | + <Viewbox |
| 282 | + x:Name="IconHost" |
| 283 | + Width="16" |
| 284 | + Height="16" |
| 285 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 286 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 287 | + AutomationProperties.AccessibilityView="Raw"> |
282 | 288 |
|
283 |
| - <ContentPresenter |
284 |
| - x:Name="ContentPresenter" |
285 |
| - Content="{TemplateBinding Content}" |
286 |
| - FontSize="{TemplateBinding FontSize}" |
287 |
| - AutomationProperties.AccessibilityView="Raw"/> |
288 |
| - </Viewbox> |
289 |
| - </Grid> |
| 289 | + <TextBlock |
| 290 | + x:Name="Icon" |
| 291 | + Text="" |
| 292 | + FontSize="{TemplateBinding FontSize}" |
| 293 | + AutomationProperties.AccessibilityView="Raw"/> |
| 294 | + |
| 295 | + </Viewbox> |
| 296 | + |
| 297 | + <ContentPresenter |
| 298 | + x:Name="ContentPresenter" |
| 299 | + VerticalContentAlignment="Center" |
| 300 | + Content="{TemplateBinding Content}" |
| 301 | + FontSize="{TemplateBinding FontSize}" |
| 302 | + Grid.Column="1"/> |
290 | 303 |
|
291 | 304 | <Border
|
292 | 305 | x:Name="RevealBorder"
|
293 | 306 | BorderBrush="{TemplateBinding BorderBrush}"
|
294 |
| - BorderThickness="{TemplateBinding BorderThickness}" /> |
| 307 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 308 | + Grid.ColumnSpan="2"/> |
295 | 309 | </Grid>
|
296 | 310 | </ControlTemplate>
|
297 | 311 | </Setter.Value>
|
298 | 312 | </Setter>
|
299 | 313 | </Style>
|
300 | 314 |
|
301 |
| - <Style x:Key="NavigationViewPaneSearchButtonStyle" BasedOn="{StaticResource PaneToggleButtonStyle}" TargetType="Button"> |
| 315 | + <Style x:Key="NavigationViewPaneSearchButtonStyle" TargetType="Button"> |
302 | 316 | <Setter Property="MinHeight" Value="40"/>
|
303 | 317 | <Setter Property="Content" Value=""/>
|
| 318 | + <Setter Property="FontFamily" Value="Segoe MDL2 Assets" /> |
| 319 | + <Setter Property="BorderThickness" Value="{ThemeResource NavigationViewToggleBorderThickness}" /> |
| 320 | + <Setter Property="Background" Value="{ThemeResource NavigationViewItemBackground}" /> |
| 321 | + <Setter Property="Foreground" Value="{ThemeResource NavigationViewItemForeground}" /> |
304 | 322 | </Style>
|
305 | 323 |
|
306 | 324 | <Style x:Key="NavigationViewOverflowButtonStyleWhenPaneOnTop" TargetType="Button">
|
|
0 commit comments