Hold(Interactive, Point, Int32, PointerType) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a complete holding gesture sequence (started -> wait -> completed).

public void Hold(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 holding gesture.

holdDuration
Int32

Duration to hold in milliseconds.

pointerType
Avalonia.Input.PointerType

Type of pointer (Touch, Mouse, Pen).