Skip to content

UIElement.RectToScreen method

Converts a rectangle from element coordinates in DIPs to screen coordinates in device pixels.

public Rect RectToScreen(Rect rect)
parameter description
rect The rectangle in element coordinates.

The bounding box of the rectangle in screen coordinates in device pixels.

exception condition
InvalidOperationException The element is not connected to a shown window.