Tap(Interactive, Point, PointerType, KeyModifiers) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a Tap gesture event. Uses RoutedEventArgs approach since TappedEventArgs requires internal PointerEventArgs.

public void Tap(Interactive target, Point position, PointerType pointerType = PointerType.Touch, KeyModifiers modifiers = KeyModifiers.None)

Parameters

target
Avalonia.Interactivity.Interactive

The target control to receive the event.

position
Avalonia.Point

Position of the tap.

pointerType
Avalonia.Input.PointerType

Type of pointer (Touch, Mouse, Pen).

modifiers
Avalonia.Input.KeyModifiers

Key modifiers held during the tap.