Swipe(Interactive, Point, SwipeDirection, Double, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a swipe gesture in a direction.

public void Swipe(Interactive target, Point startPoint, SwipeDirection direction, double distance = 100, int duration = 200)

Parameters

target
Avalonia.Interactivity.Interactive

The target control to receive the event.

startPoint
Avalonia.Point

Starting position.

direction
SwipeDirection

Swipe direction.

distance
Double

Swipe distance.

duration
Int32

Swipe duration in milliseconds.