|
27 | 27 | <x:Double x:Key="SliderTrackThickness">4</x:Double> |
28 | 28 | <x:Double x:Key="SliderFillThickness">6</x:Double> |
29 | 29 |
|
| 30 | + <x:Double x:Key="SliderPreContentMargin">14</x:Double> |
| 31 | + <x:Double x:Key="SliderPostContentMargin">14</x:Double> |
| 32 | + <x:Double x:Key="SliderHorizontalHeight">32</x:Double> |
| 33 | + <x:Double x:Key="SliderVerticalWidth">32</x:Double> |
| 34 | + |
30 | 35 | <!-- Resources for the Slider Ticks, For future uses. --> |
31 | 36 | <StaticResource x:Key="SliderTickBarFill" ResourceKey="OnSurfaceVariantBrush" /> |
32 | 37 | <StaticResource x:Key="SliderTickBarFillDisabled" ResourceKey="SystemControlDisabledChromeDisabledHighBrush" /> |
|
75 | 80 | <x:Double x:Key="SliderTrackThickness">4</x:Double> |
76 | 81 | <x:Double x:Key="SliderFillThickness">6</x:Double> |
77 | 82 |
|
| 83 | + <x:Double x:Key="SliderPreContentMargin">14</x:Double> |
| 84 | + <x:Double x:Key="SliderPostContentMargin">14</x:Double> |
| 85 | + <x:Double x:Key="SliderHorizontalHeight">32</x:Double> |
| 86 | + <x:Double x:Key="SliderVerticalWidth">32</x:Double> |
| 87 | + |
78 | 88 | <!-- Resources for the Slider Ticks, For future uses. --> |
79 | 89 | <StaticResource x:Key="SliderTickBarFill" ResourceKey="OnSurfaceVariantBrush" /> |
80 | 90 | <StaticResource x:Key="SliderTickBarFillDisabled" ResourceKey="SystemControlDisabledChromeDisabledHighBrush" /> |
|
215 | 225 | Control.IsTemplateFocusTarget="True"> |
216 | 226 |
|
217 | 227 | <!-- HorizontalTemplate --> |
218 | | - <Grid x:Name="HorizontalTemplate"> |
| 228 | + <Grid x:Name="HorizontalTemplate" MinHeight="{ThemeResource SliderHorizontalHeight}"> |
219 | 229 |
|
220 | 230 | <Grid.ColumnDefinitions> |
221 | 231 | <ColumnDefinition Width="Auto" /> |
|
224 | 234 | </Grid.ColumnDefinitions> |
225 | 235 |
|
226 | 236 | <Grid.RowDefinitions> |
| 237 | + <RowDefinition Height="{ThemeResource SliderPreContentMargin}" /> |
227 | 238 | <RowDefinition Height="Auto" /> |
228 | | - <RowDefinition Height="Auto" /> |
229 | | - <RowDefinition Height="Auto" /> |
| 239 | + <RowDefinition Height="{ThemeResource SliderPostContentMargin}" /> |
230 | 240 | </Grid.RowDefinitions> |
231 | 241 |
|
232 | 242 | <!-- HorizontalTrackRect --> |
|
287 | 297 |
|
288 | 298 | <!-- VerticalTemplate --> |
289 | 299 | <Grid x:Name="VerticalTemplate" |
| 300 | + MinWidth="{ThemeResource SliderVerticalWidth}" |
290 | 301 | Visibility="Collapsed"> |
291 | 302 |
|
292 | 303 | <Grid.RowDefinitions> |
|
296 | 307 | </Grid.RowDefinitions> |
297 | 308 |
|
298 | 309 | <Grid.ColumnDefinitions> |
| 310 | + <ColumnDefinition Width="{ThemeResource SliderPreContentMargin}" /> |
299 | 311 | <ColumnDefinition Width="Auto" /> |
300 | | - <ColumnDefinition Width="Auto" /> |
301 | | - <ColumnDefinition Width="Auto" /> |
| 312 | + <ColumnDefinition Width="{ThemeResource SliderPostContentMargin}" /> |
302 | 313 | </Grid.ColumnDefinitions> |
303 | 314 |
|
304 | 315 | <!-- VerticalTrackRect --> |
|
0 commit comments