I am going to be adding a number of range sliders to a control, dynamically at runtime. Ideally, they will all have the same style, except for the thumb color. Is it possible to dynamically set the color of a Range Slider 'HorizontalRangeMiddleThumb' at run-time?
2 Answers, 1 is accepted
0
Dimitrina
Telerik team
answered on 01 Feb 2010, 01:43 PM
Hello Heather Kyle,
This functionality is not supported by the control.
I actually found a fairly easy work-around for this problem. I set the background color for the thumb to a SolidColorBrush that was defined in the Control.Resources. I manipulate that color through a property in the code-behind, and voilĂ --the thumbs are the colors I want them to be.
In the .xaml file: