Slider

The Slider is an interactive control that allows the user to set its Value property by dragging or pressing the Slider track. It is ideal for values that do not require a high level of precision, such as the volume setting for music in a game.

The following demonstrates how to define a Slider in XAML:

<Slider Value="5" Minimum="0" Maximum="100" LargeChange="20" />

The Value, Minimum, and Maximum properties are described in the previous section on the RangeBase control.

When the user taps the Slider track, the Value property is incremented or decremented by the value of the LargeChange property.

The default orientation of the Slider is horizontal. The orientation can be changed by setting the Orientation property to Vertical.

The Slider ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.