UIElement.RectFromScreen method
Converts a rectangle from screen coordinates in device pixels to element coordinates in DIPs.
public Rect RectFromScreen(Rect rect)| parameter | description |
|---|---|
| rect | The rectangle in screen coordinates in device pixels. |
Return Value
Section titled “Return Value”The bounding box of the rectangle in element coordinates.
Exceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| InvalidOperationException | The element is not connected to a shown window. |
See Also
Section titled “See Also”- struct Rect
- class UIElement
- namespace Aprillz.MewUI.Controls