Select segments on the slider

I am looking for a way to highlight segments (in yellow) on the slider / runtime panel as follows:

slider with highlighted segments example

I found an article in an article on how to create a custom WPF slider using style:

But I just need to select the selected segments on the slider.

For instance:

//Given:

List<Rectangle> rectangles; 

//And invoke

mycontrol.highlight(rectangles);

How can i do this? Or more specifically, how can I draw a slider at runtime?

+3
source share
1 answer

in the slider Property IsSelectionRangeEnabled

true, . , SelectionStart SelectionEnd. , . , , .

+3

All Articles