Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 2.03 KB

interactiontracker_scale.md

File metadata and controls

27 lines (17 loc) · 2.03 KB
-api-id -api-type
P:Windows.UI.Composition.Interactions.InteractionTracker.Scale
winrt property

Windows.UI.Composition.Interactions.InteractionTracker.Scale

-description

The output scale calculated by the InteractionTracker. The current scale is a relative value that depends on the values specified in the MinScale and MaxScale properties.

The scale property of the InteractionTracker is a float representing the scale in the InteractionTracker ’s coordinate space. This value will start at 1 and will increase or decrease based on active input or direct calls to update or animate the property. The scale property when the InteractionTracker is in the Idle or CustomAnimation states will not change from 1 unless the MinScale and MaxScale properties, which both default to 1, are updated. InteractionTracker ’s scale can go slightly outside this range during the Interacting and Inertia states in order to show a bounce or resistance at the boundary.

-property-value

The output scale calculated by the InteractionTracker.

-remarks

The InteractionTracker scale is populated either by active input through the VisualInteractionSource or by direct calls to update the scale. Active “pinch” input will update the InteractionTracker ’s scale property if configured. All calls to animate or update the scale accept float input. The scale property referenced in an ExpressionAnimation will always reflect the current scale of the InteractionTracker taking into account factors such as boundaries and inertia modifiers.

-examples

-see-also