IPointerCapture Method

Captures pointer input to the specified control.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
void Capture(
	IInputElement? control
)

Parameters

control  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