Capture Method
Captures pointer input to the specified control.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
void Capture(
IInputElement? control
)
Sub Capture (
control As IInputElement
)
abstract Capture :
control : IInputElement -> unit
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.