Dela via


InteractionTracker.Scale Property

Definition

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.

public:
 property float Scale { float get(); };
float Scale();
public float Scale { get; }
var single = interactionTracker.scale;
Public ReadOnly Property Scale As Single

Property Value

Single

float

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.

Applies to