Multiple Slider

Currently, the WPF slider has some properties that allow you to define and view one interval on the slider: SelectionStart, SelectionEnd and IsSelectionRangeEnabled.

Setting these values

<Slider Minimum="0" Maximum="300" Value="150" IsSelectionRangeEnabled="True" SelectionStart="50" SelectionEnd="200"/>

you get the selected interval in the blue colored slider, for example:

enter image description here

What I would like to do is define a few intervals - for example. (50-100), (110-130), (170-200) and (210-240), which are as follows:

enter image description here

Any ideas on how to evaluate this problem, or which template should I try changing to get this feature?

+5
source share
2 answers

, . ,

+2

Ticks . , , , .

<Slider Minimum="0" Maximum="300" Value="150" 
IsSelectionRangeEnabled="True" SelectionStart="50" 
SelectionEnd="200" IsMoveToPointEnabled="True" 
TickPlacement="BottomRight" Ticks="50, 100, 105, 140, 150, 200" IsSnapToTickEnabled="True" />
0

All Articles