Summary
Gets the mouse position relative to a control.
- Namespace
- Avalonia
.Input - Containing Type
- MouseDevice
Syntax
public Point GetPosition(IVisual relativeTo)
Parameters
Name | Type | Description |
---|---|---|
relativeTo | IVisual | The control. |
Return Value
Type | Description |
---|---|
Point | The mouse position in the control's coordinates. |