Reputation: 645
This is my Slider
<Slider Name="SliderSpeed"
Minimum="0"
Maximum="50"
SmallChange="0.1"
LargeChange="1"
IsSnapToTickEnabled="True"
TickPlacement="None"
materialDesign:ThemeAssist.Theme="Dark"
Value="{Binding Path=(properties:Settings.Default).Speed}"/>
So currently every time i move the slider
the jump is 1 and i want the value
to be able to be for example 1.5
Also properties:Settings.Default).Speed
defined as double.
Upvotes: 0
Views: 876
Reputation: 128062
When you set IsSnapToTickEnabled="True"
, also set the TickFrequency
property:
<Slider x:Name="SliderSpeed"
Minimum="0"
Maximum="50"
LargeChange="1"
SmallChange="0.1"
TickFrequency="0.1"
IsSnapToTickEnabled="True"
TickPlacement="None"
materialDesign:ThemeAssist.Theme="Dark"
Value="{Binding Path=(properties:Settings.Default).Speed}"/>
Upvotes: 1