Udostępnij za pośrednictwem


InteractionTrackerClampingOption Enum

Definition

Defines constants that specify how values are clamped when the InteractionTracker position is updated.

public enum class InteractionTrackerClampingOption
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
enum class InteractionTrackerClampingOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
public enum InteractionTrackerClampingOption
Public Enum InteractionTrackerClampingOption
Inheritance
InteractionTrackerClampingOption
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Fields

Name Value Description
Auto 0

If the input value is greater (or less) than the max (or min) value, it is immediately clamped.

Disabled 1

If the input value is greater (or less) than the max (or min) value, it is not immediately clamped. Instead, the max/min is enforced to the newly input value of Position (and potentially clamped) the next time InteractionTracker enters the Inertia state.

Remarks

This enumeration provides values for the option parameter of the TryUpdatePosition and TryUpdatePositionBy methods.

Clamping is based on the values of InteractionTracker MinPosition/MaxPosition and MinScale/MaxScale.

Applies to

See also