❔ ❔ 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
Accord2y 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
Macke2y ago
Can you rephrase your question so it is understandable?
Korbah
Korbah2y 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
Accord2y 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.
Want results from more Discord servers?
Add your server
More Posts