InteractionTrackerClampingOption InteractionTrackerClampingOption InteractionTrackerClampingOption InteractionTrackerClampingOption Enum

Definition

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

public : enum class InteractionTrackerClampingOption
enum class winrt::Windows::UI::Composition::Interactions::InteractionTrackerClampingOption : int32_t
public enum InteractionTrackerClampingOption
Public Enum InteractionTrackerClampingOption
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Fields

Auto Auto Auto Auto 0

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

Disabled Disabled Disabled 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.

See also