MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.31k stars 2.45k forks source link

MahApps RangeSlider cannot change foregroundcolor #3658

Closed GeorgLink closed 4 years ago

GeorgLink commented 4 years ago

[Disclaimer, I'm posting this issue for my godfather who does not have a GitHub account.]

Describe the bug

For the MahApps RangeSlider control the property foreground color cannot be set via XAML or code behind.

Using a style does not solve the problem either.

Environment(please complete the following information):

MahApps.Metro version v1.6.5 OS: Win10 Visual Studio 2017 15.5.3 .NET Framework 4.6

A picture says more than 1000 words:

image

timunie commented 4 years ago

Hi @GeorgLink

do you want to have something like this? image

if yes, try this attachted property:

Controls:SliderHelper.TrackValueFillBrush="DeepPink"
Controls:SliderHelper.ThumbFillBrush="DeepPink"

Happy coding to you and your godfather Tim

GeorgLink commented 4 years ago

Thanks @timunie, it looks interesting. I'll let you know once I hear whether it solves my godfather's issue 😉

GeorgLink commented 4 years ago

Thanks again @timunie. Your solution worked!