TapAndHold(Interactive, Point, Int32, PointerType) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a tap-and-hold gesture (tap followed by hold).

public void TapAndHold(Interactive target, Point position, int holdDuration = 500, PointerType pointerType = PointerType.Touch)

Parameters

target
Avalonia.Interactivity.Interactive

The target control to receive the event.

position
Avalonia.Point

Position of the gesture.

holdDuration
Int32

Duration to hold in milliseconds.

pointerType
Avalonia.Input.PointerType

Type of pointer.