Summary
Captures mouse input to the specified control.
- Namespace
- Avalonia
.Input - Containing Type
- MouseDevice
Syntax
public void Capture(IInputElement? control)
Remarks
When an element captures the mouse, it receives mouse input whether the cursor is
within the control's bounds or not. The current mouse capture control is exposed
by the
Captured
property.
Parameters
Name | Type | Description |
---|---|---|
control | IInputElement? | The control. |
Return Value
Type | Description |
---|---|
void |