|
67 | 67 | <SolidColorBrush x:Key="NavigationBarEllipsisButtonBackground"
|
68 | 68 | Color="Transparent" />
|
69 | 69 |
|
70 |
| - <not_mobile:StaticResource x:Key="AppBarButtonHeight" |
71 |
| - ResourceKey="MaterialXamlNavigationBarHeight" /> |
72 |
| - <not_mobile:StaticResource x:Key="AppBarButtonWidth" |
73 |
| - ResourceKey="MaterialXamlNavigationBarHeight" /> |
74 |
| - |
75 |
| - <mobile:StaticResource x:Key="AppBarButtonHeight" |
76 |
| - ResourceKey="MaterialNavigationBarHeight" /> |
77 |
| - <mobile:StaticResource x:Key="AppBarButtonWidth" |
78 |
| - ResourceKey="MaterialNavigationBarHeight" /> |
79 |
| - |
80 | 70 | <x:Double x:Key="MaterialNavigationBarElevation">4</x:Double>
|
81 | 71 | <x:Double x:Key="MaterialXamlNavigationBarHeight">64</x:Double>
|
82 | 72 | <x:Double x:Key="MaterialNavigationBarHeight">64</x:Double>
|
|
89 | 79 | <StaticResource x:Key="NavigationBarMaterialEllipsisButtonWidth" ResourceKey="AppBarExpandButtonThemeWidth" />
|
90 | 80 |
|
91 | 81 | <x:Double x:Key="NavBarAppBarButtonContentHeight">16</x:Double>
|
92 |
| - <StaticResource x:Key="AppBarButtonContentHeight" ResourceKey="NavBarAppBarButtonContentHeight" /> |
93 | 82 | <x:Double x:Key="NavBarMainCommandAppBarButtonContentHeight">24</x:Double>
|
94 | 83 | <x:Double x:Key="NavBarAppBarThemeCompactHeight">64</x:Double>
|
95 |
| - <StaticResource x:Key="AppBarThemeCompactHeight" ResourceKey="NavBarAppBarThemeCompactHeight" /> |
96 | 84 | <Thickness x:Key="NavBarAppBarButtonPadding">12,16,12,16</Thickness>
|
97 | 85 | <Visibility x:Key="NavBarAppBarButtonHasFlyoutChevronVisibility">Collapsed</Visibility>
|
98 | 86 | <x:String x:Key="NavigationBarBackIconData">M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z</x:String>
|
|
136 | 124 | <SolidColorBrush x:Key="NavigationBarEllipsisButtonBackground"
|
137 | 125 | Color="Transparent" />
|
138 | 126 |
|
139 |
| - <not_mobile:StaticResource x:Key="AppBarButtonHeight" |
140 |
| - ResourceKey="MaterialXamlNavigationBarHeight" /> |
141 |
| - <not_mobile:StaticResource x:Key="AppBarButtonWidth" |
142 |
| - ResourceKey="MaterialXamlNavigationBarHeight" /> |
143 |
| - |
144 |
| - <mobile:StaticResource x:Key="AppBarButtonHeight" |
145 |
| - ResourceKey="MaterialNavigationBarHeight" /> |
146 |
| - <mobile:StaticResource x:Key="AppBarButtonWidth" |
147 |
| - ResourceKey="MaterialNavigationBarHeight" /> |
148 | 127 |
|
149 | 128 | <x:Double x:Key="MaterialNavigationBarElevation">4</x:Double>
|
150 | 129 | <x:Double x:Key="MaterialXamlNavigationBarHeight">64</x:Double>
|
|
158 | 137 | <StaticResource x:Key="NavigationBarMaterialEllipsisButtonWidth" ResourceKey="AppBarExpandButtonThemeWidth" />
|
159 | 138 |
|
160 | 139 | <x:Double x:Key="NavBarAppBarButtonContentHeight">16</x:Double>
|
161 |
| - <StaticResource x:Key="AppBarButtonContentHeight" ResourceKey="NavBarAppBarButtonContentHeight" /> |
162 | 140 | <x:Double x:Key="NavBarMainCommandAppBarButtonContentHeight">24</x:Double>
|
163 | 141 | <x:Double x:Key="NavBarAppBarThemeCompactHeight">64</x:Double>
|
164 |
| - <StaticResource x:Key="AppBarThemeCompactHeight" ResourceKey="NavBarAppBarThemeCompactHeight" /> |
165 | 142 | <Thickness x:Key="NavBarAppBarButtonPadding">12,16,12,16</Thickness>
|
166 | 143 | <Visibility x:Key="NavBarAppBarButtonHasFlyoutChevronVisibility">Collapsed</Visibility>
|
167 | 144 | <x:String x:Key="NavigationBarBackIconData">M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z</x:String>
|
|
293 | 270 | <CommandBar x:Name="XamlNavigationBarCommandBar"
|
294 | 271 | Content="{TemplateBinding Content}"
|
295 | 272 | Margin="{TemplateBinding Padding}"
|
| 273 | + Height="{ThemeResource NavBarAppBarThemeCompactHeight}" |
296 | 274 | Style="{StaticResource MaterialNavigationBarCommandBar}" />
|
297 | 275 | </Grid>
|
298 | 276 | </ControlTemplate>
|
|
339 | 317 | Value="0" />
|
340 | 318 | </DoubleAnimationUsingKeyFrames>
|
341 | 319 | </Storyboard>
|
342 |
| - <!--<StaticResource x:Key="AppBarButtonContentHeight" ResourceKey="NavBarAppBarButtonContentHeight" />--> |
| 320 | + <StaticResource x:Key="AppBarButtonContentHeight" ResourceKey="NavBarAppBarButtonContentHeight" /> |
343 | 321 | <StaticResource x:Key="AppBarThemeCompactHeight" ResourceKey="NavBarAppBarThemeCompactHeight" />
|
344 | 322 | <Style BasedOn="{StaticResource SplitButtonCommandBarStyle}"
|
345 | 323 | TargetType="SplitButton" />
|
346 | 324 | <Style BasedOn="{StaticResource SplitButtonCommandBarStyle}"
|
347 | 325 | TargetType="ToggleSplitButton" />
|
348 | 326 | <Style BasedOn="{StaticResource MaterialAppBarButtonStyle}"
|
349 | 327 | TargetType="AppBarButton">
|
350 |
| - <!--<Setter Property="Padding" Value="{ThemeResource NavBarAppBarButtonPadding}" />--> |
351 | 328 | </Style>
|
| 329 | + |
| 330 | + <not_mobile:StaticResource x:Key="AppBarButtonHeight" |
| 331 | + ResourceKey="MaterialXamlNavigationBarHeight" /> |
| 332 | + <not_mobile:StaticResource x:Key="AppBarButtonWidth" |
| 333 | + ResourceKey="MaterialXamlNavigationBarHeight" /> |
| 334 | + |
| 335 | + <mobile:StaticResource x:Key="AppBarButtonHeight" |
| 336 | + ResourceKey="MaterialNavigationBarHeight" /> |
| 337 | + <mobile:StaticResource x:Key="AppBarButtonWidth" |
| 338 | + ResourceKey="MaterialNavigationBarHeight" /> |
352 | 339 | </Grid.Resources>
|
353 | 340 | <Grid x:Name="ContentRoot"
|
354 | 341 | Height="{TemplateBinding Height}"
|
|
719 | 706 | </Setter.Value>
|
720 | 707 | </Setter>
|
721 | 708 | </Style>
|
| 709 | + |
722 | 710 | <!--#endregion-->
|
723 | 711 |
|
724 | 712 | <!--#region Default Modal Material NavigationBar-->
|
|
763 | 751 | <CommandBar x:Name="XamlNavigationBarCommandBar"
|
764 | 752 | Content="{TemplateBinding Content}"
|
765 | 753 | Margin="{TemplateBinding Padding}"
|
| 754 | + Height="{ThemeResource NavBarAppBarThemeCompactHeight}" |
766 | 755 | Style="{StaticResource MaterialPrimaryNavigationBarCommandBar}" />
|
767 | 756 | </Grid>
|
768 | 757 | </ControlTemplate>
|
|
817 | 806 | TargetType="ToggleSplitButton" />
|
818 | 807 | <Style BasedOn="{StaticResource MaterialPrimaryAppBarButtonStyle}"
|
819 | 808 | TargetType="AppBarButton">
|
820 |
| - <Setter Property="Padding" Value="{ThemeResource NavBarAppBarButtonPadding}" /> |
821 | 809 | </Style>
|
| 810 | + |
| 811 | + <not_mobile:StaticResource x:Key="AppBarButtonHeight" |
| 812 | + ResourceKey="MaterialXamlNavigationBarHeight" /> |
| 813 | + <not_mobile:StaticResource x:Key="AppBarButtonWidth" |
| 814 | + ResourceKey="MaterialXamlNavigationBarHeight" /> |
| 815 | + |
| 816 | + <mobile:StaticResource x:Key="AppBarButtonHeight" |
| 817 | + ResourceKey="MaterialNavigationBarHeight" /> |
| 818 | + <mobile:StaticResource x:Key="AppBarButtonWidth" |
| 819 | + ResourceKey="MaterialNavigationBarHeight" /> |
822 | 820 | </Grid.Resources>
|
823 | 821 | <Grid x:Name="ContentRoot"
|
824 | 822 | Height="{TemplateBinding Height}"
|
|
0 commit comments