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

Definition

Assembly HeadlessTestingFramework.dll

Simulates a complete pinch zoom gesture sequence.

public void PinchZoom(Interactive target, Point origin, double startScale, double endScale, int steps = 10, double startAngle = 0, double endAngle = 0)

Parameters

target
Avalonia.Interactivity.Interactive

The target control to receive the event.

origin
Avalonia.Point

Center point of the pinch.

startScale
Double

Starting scale (typically 1.0).

endScale
Double

Ending scale.

steps
Int32

Number of intermediate steps (must be greater than 0).

startAngle
Double

Starting angle in radians. For degrees, use PinchRotate(Interactive, Point, Double, Double, Int32) instead.

endAngle
Double

Ending angle in radians. For degrees, use PinchRotate(Interactive, Point, Double, Double, Int32) instead.

Remarks

Note: Angle parameters are in radians (e.g., Math.PI for 180°). For degrees, use PinchRotate(Interactive, Point, Double, Double, Int32) which accepts degrees.