Skip to content

Element.TranslateRect method

Converts a rectangle in this element’s coordinate space to the specified element’s coordinate space.

public Rect TranslateRect(Rect rect, Element relativeTo)
exception condition
InvalidOperationException The elements are not in the same visual tree.