Dela via


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
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SliderSnapsTo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SliderSnapsTo
Public Enum SliderSnapsTo
<objectproperty="enumMemberName" />
Inheritance
SliderSnapsTo
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
StepValues 0

Conform the indicator to the step values.

Ticks 1

Conform the indicator to the tick marks.

Examples

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

Applies to

See also