Skip to main content

Captured Property

Gets the control that is currently capturing by the pointer, if any.

Definition​

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

IInputElement? Captured { get; }
View Source

Property Value​

IInputElement

Remarks​

When an element captures the pointer, it receives pointer input whether the cursor is within the control's bounds or not. To set the pointer capture, call the Capture(IInputElement) method.

See Also​

Reference​

IPointer Interface
Avalonia.Input Namespace