Slider in WPF. The value is double and the value is continuously changed between MinValue and MaxValue. To make it a discrete value (such as an integer), you must manually specify the following attributes:
- TickFrequency: interval between each scale
- IsSnapToTickEnabled: if it is set to True, It is aligned to the scale.
- TickPlacement: Which side of the slider is the scale?
The SmallChange and LargeChange columns on the right of the Blend have nothing to do with this function. Never be cheated -_-
For example, if you want to design a slider to pick up integers from 3 to 10, you can set the following settings.
<Slider Margin = "3" x: name = "sliderTimes" Minimum = "3" Value = "5" SmallChange = "1" LargeChange = "2" extends aptotickenabled = "True"> </Slider>
The function of binding to element attributes in WPF is very useful, and it is very powerful for collaboration with this slide ~~