A Slider control lets users select a value from a range of values.
You can customize a Slider control by setting its properties. The following list describes some of the attributes of a Slider that you can customize:
The orientation of the Slider, either horizontal or vertical with the Orientation property.
The direction of increasing value along the Slider with the IsDirectionReversed property.
For more information about how to customize a Slider control, see the individual member.
Note: |
|---|
Due to the precedence of how dependency properties are set, if the Value property of the Slider is animated, the user may no longer be able set it when the animation finishes. For more information, see Dependency Property Value Precedence. |
For a list of the initial property values for an instance of the Slider class, see the Slider()()() constructor.
Customizing the Slider Control
To apply the same property settings to multiple Slider controls, use the Style property. To change the visual structure and visual behavior of a Slider, copy and modify its default style and template. For more information, see Control Customization.
If a dependency property for a Slider is set by its default style, the property might change from its default value when the Slider appears in the application. For more information, see Dependency Property Value Precedence. You can get the default style and template for Slider from Slider Styles and Templates.