Skip to content

Commit

Permalink
(GH-3671) Fix missing RangeSlider thumbs
Browse files Browse the repository at this point in the history
The RangeSlider thumbs are gone after renaming the styles in #3552.

Closes #3671 
Relates to #3552
  • Loading branch information
punker76 committed Nov 3, 2019
1 parent ea9699c commit 20b3c17
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/MahApps.Metro/Themes/RangeSlider.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Maximum="{TemplateBinding Maximum}"
Minimum="{TemplateBinding Minimum}"
Placement="Top"
ReservedSpace="{DynamicResource HorizontalThumbWidth}"
ReservedSpace="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Width}"
SelectionEnd="{TemplateBinding SelectionEnd}"
SelectionStart="{TemplateBinding SelectionStart}"
TickFrequency="{TemplateBinding TickFrequency}"
Expand All @@ -63,7 +63,7 @@
Maximum="{TemplateBinding Maximum}"
Minimum="{TemplateBinding Minimum}"
Placement="Bottom"
ReservedSpace="{DynamicResource HorizontalThumbWidth}"
ReservedSpace="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Width}"
SelectionEnd="{TemplateBinding SelectionEnd}"
SelectionStart="{TemplateBinding SelectionStart}"
TickFrequency="{TemplateBinding TickFrequency}"
Expand All @@ -78,7 +78,7 @@
Style="{DynamicResource MahApps.Styles.RepeatButton.Slider.HorizontalTrack}" />

<Controls:MetroThumb x:Name="PART_LeftThumb"
Width="{DynamicResource HorizontalThumbWidth}"
Width="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Width}"
Height="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Height}"
Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.ThumbFillBrush)}"
BorderThickness="1 0"
Expand All @@ -90,7 +90,7 @@
Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.TrackValueFillBrush)}"
Style="{DynamicResource MahApps.Styles.MetroThumb.RangeSlider.HorizontalMiddleThumb}" />
<Controls:MetroThumb x:Name="PART_RightThumb"
Width="{DynamicResource HorizontalThumbWidth}"
Width="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Width}"
Height="{DynamicResource MahApps.Sizes.Slider.HorizontalThumb.Height}"
Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.ThumbFillBrush)}"
BorderThickness="1 0"
Expand Down Expand Up @@ -169,7 +169,7 @@
Maximum="{TemplateBinding Maximum}"
Minimum="{TemplateBinding Minimum}"
Placement="Left"
ReservedSpace="{DynamicResource VerticalThumbHeight}"
ReservedSpace="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Height}"
SelectionEnd="{TemplateBinding SelectionEnd}"
SelectionStart="{TemplateBinding SelectionStart}"
TickFrequency="{TemplateBinding TickFrequency}"
Expand All @@ -183,7 +183,7 @@
Maximum="{TemplateBinding Maximum}"
Minimum="{TemplateBinding Minimum}"
Placement="Right"
ReservedSpace="{DynamicResource VerticalThumbHeight}"
ReservedSpace="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Height}"
SelectionEnd="{TemplateBinding SelectionEnd}"
SelectionStart="{TemplateBinding SelectionStart}"
TickFrequency="{TemplateBinding TickFrequency}"
Expand All @@ -198,8 +198,8 @@
Style="{DynamicResource MahApps.Styles.RepeatButton.Slider.VerticalTrack}" />

<Controls:MetroThumb x:Name="PART_RightThumb"
Width="{DynamicResource VerticalThumbWidth}"
Height="{DynamicResource VerticalThumbHeight}"
Width="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Width}"
Height="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Height}"
Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.ThumbFillBrush)}"
BorderThickness="0 1"
Cursor="Arrow"
Expand All @@ -210,8 +210,8 @@
Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.TrackValueFillBrush)}"
Style="{StaticResource MahApps.Styles.MetroThumb.RangeSlider.VerticalMiddleThumb}" />
<Controls:MetroThumb x:Name="PART_LeftThumb"
Width="{DynamicResource VerticalThumbWidth}"
Height="{DynamicResource VerticalThumbHeight}"
Width="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Width}"
Height="{DynamicResource MahApps.Sizes.Slider.VerticalThumb.Height}"
Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Controls:SliderHelper.ThumbFillBrush)}"
BorderThickness="0 1"
Cursor="Arrow"
Expand Down

0 comments on commit 20b3c17

Please sign in to comment.