Skip to content

Commit 91a5e3a

Browse files
authored
Slider thumb added foreground template binding (#2353)
1 parent c7fa442 commit 91a5e3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Slider.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
</Track.IncreaseRepeatButton>
554554
<!-- It's important that the Thumb gets added last in the XAML to make sure it is drawn on top of both repeat buttons -->
555555
<Track.Thumb>
556-
<Thumb Template="{StaticResource MaterialDesignSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
556+
<Thumb Template="{StaticResource MaterialDesignSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Foreground="{TemplateBinding Foreground}" />
557557
</Track.Thumb>
558558
</Track>
559559
</Grid>
@@ -617,7 +617,7 @@
617617
</Track.IncreaseRepeatButton>
618618
<!-- It's important that the Thumb gets added last in the XAML to make sure it is drawn on top of both repeat buttons -->
619619
<Track.Thumb>
620-
<Thumb Template="{StaticResource MaterialDesignSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
620+
<Thumb Template="{StaticResource MaterialDesignSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Foreground="{TemplateBinding Foreground}" />
621621
</Track.Thumb>
622622
</Track>
623623
</Grid>
@@ -681,7 +681,7 @@
681681
</Track.IncreaseRepeatButton>
682682
<!-- It's important that the Thumb gets added last in the XAML to make sure it is drawn on top of both repeat buttons -->
683683
<Track.Thumb>
684-
<Thumb Template="{StaticResource MaterialDesignDiscreteSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
684+
<Thumb Template="{StaticResource MaterialDesignDiscreteSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Foreground="{TemplateBinding Foreground}" />
685685
</Track.Thumb>
686686
</Track>
687687
</Grid>
@@ -745,7 +745,7 @@
745745
</Track.IncreaseRepeatButton>
746746
<!-- It's important that the Thumb gets added last in the XAML to make sure it is drawn on top of both repeat buttons -->
747747
<Track.Thumb>
748-
<Thumb Template="{StaticResource MaterialDesignLeftDiscreteSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
748+
<Thumb Template="{StaticResource MaterialDesignLeftDiscreteSliderThumb}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Foreground="{TemplateBinding Foreground}" />
749749
</Track.Thumb>
750750
</Track>
751751
</Grid>

0 commit comments

Comments
 (0)