Skip to main content

Capture Method

Captures pointer input to the specified control.

Definition​

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

void Capture(
IInputElement? control
)
View Source

Parameters​

  IInputElement
The control.

Remarks​

When an element captures the pointer, it receives pointer input whether the cursor is within the control's bounds or not. The current pointer capture control is exposed by the Captured property.

See Also​

Reference​

IPointer Interface
Avalonia.Input Namespace