GestureSimulator Class

Definition

Comprehensive gesture simulator for headless testing of Avalonia controls. Provides methods to simulate all Avalonia gesture events including tap, double-tap, right-tap, holding, pinch, scroll, pull-to-refresh, and touchpad gestures.

public class GestureSimulator

Remarks

Note: Some gesture event args have internal constructors in Avalonia. For these cases, we use reflection or alternative approaches. TappedEventArgs requires a PointerEventArgs which we create internally. ScrollGestureInertiaStartingEventArgs has an internal constructor and cannot be directly instantiated from user code - scroll sequences work without inertia events.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (1)

Methods (31)