SliderSnapsTo SliderSnapsTo SliderSnapsTo SliderSnapsTo Enum

Definition

Defines constants that specify how a Slider or related range control class conforms the indicator position to its steps or tick marks.

public : enum class SliderSnapsTo
enum class winrt::Windows::UI::Xaml::Controls::Primitives::SliderSnapsTo : int32_t
public enum SliderSnapsTo
Public Enum SliderSnapsTo
<objectproperty="enumMemberName" />
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

StepValues StepValues StepValues StepValues 0

Conform the indicator to the step values.

Ticks Ticks Ticks Ticks 1

Conform the indicator to the tick marks.

Examples

<Slider TickPlacement="Inline"
        TickFrequency="20"
        SnapsTo="Ticks"/>

See also