DragPath(Interactive, Point[], MouseButton, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a drag with custom path.

public void DragPath(Interactive target, Point[] path, MouseButton button = MouseButton.Left, int stepInterval = 16)

Parameters

target
Avalonia.Interactivity.Interactive

The target control.

path
Avalonia.Point[]

Array of points defining the drag path.

button
Avalonia.Input.MouseButton

Mouse button to use for dragging.

stepInterval
Int32

Time between steps in milliseconds.