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(Microsoft.Foundation.LiftedContract, 65536)]
enum class InteractionTrackerClampingOption
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
enum class InteractionTrackerClampingOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
public enum InteractionTrackerClampingOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public enum InteractionTrackerClampingOption
var value = Microsoft.UI.Composition.Interactions.InteractionTrackerClampingOption.auto
Public Enum InteractionTrackerClampingOption
Inheritance
InteractionTrackerClampingOption
Attributes

Fields

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