RightTap(Interactive, Point, PointerType, KeyModifiers) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a RightTap gesture event (context menu trigger).

public void RightTap(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 right tap.

pointerType
Avalonia.Input.PointerType

Type of pointer (Touch, Mouse, Pen).

modifiers
Avalonia.Input.KeyModifiers

Key modifiers held during the tap.