❔ ❔ WPF Slider

How do you make it when you display volume in a slider, that it will only show you 0 - 5 - 10 etc? I have this: lblSliderWaardes.Content = "Volume: " + Math.Round(sldVolume.Value);
4 Replies
Accord
Accord3y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Macke
Macke3y ago
Can you rephrase your question so it is understandable?
Korbah
Korbah3y ago
in XAML, you can try using the IsSnapToTickEnabled and TickFrequency properties Like this
<Slider Orientation="Vertical" Height="200" Minimum="0" Maximum="10" Value="0" IsSnapToTickEnabled="True" TickFrequency="1" />
<Slider Orientation="Vertical" Height="200" Minimum="0" Maximum="10" Value="0" IsSnapToTickEnabled="True" TickFrequency="1" />
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?