SimulatePinchZoomIn(Interactive, Point, Double, Double, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a pinch zoom in gesture (fingers moving apart).

public static void SimulatePinchZoomIn(Interactive target, Point center, double startDistance, double endDistance, int steps = 10)

Parameters

target
Avalonia.Interactivity.Interactive

The target control.

center
Avalonia.Point

Center point of the pinch.

startDistance
Double

Starting distance between fingers.

endDistance
Double

Ending distance between fingers.

steps
Int32

Number of intermediate steps (must be at least 1).