SimulatePinch(Interactive, Point, Point, Point, Point, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a pinch gesture using two touch helpers.

public static void SimulatePinch(Interactive target, Point firstStart, Point secondStart, Point firstEnd, Point secondEnd, int steps = 10)

Parameters

target
Avalonia.Interactivity.Interactive

The target control.

firstStart
Avalonia.Point

Starting position of first finger.

secondStart
Avalonia.Point

Starting position of second finger.

firstEnd
Avalonia.Point

Ending position of first finger.

secondEnd
Avalonia.Point

Ending position of second finger.

steps
Int32

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