Summary
Gets the control that is currently capturing by the mouse, if any.
- Namespace
- Avalonia
.Input - Containing Type
- MouseDevice
Syntax
[Obsolete("Use IPointer instead")]
public IInputElement? Captured { get; }
Remarks
When an element captures the mouse, it receives mouse input whether the cursor is
within the control's bounds or not. To set the mouse capture, call the
Capture(IInputElement?)
method.
Attributes
Type | Description |
---|---|
ObsoleteAttribute |
Value
Type | Description |
---|---|
IInputElement? |