Skip to content

Element.TransformToVisual method

Returns a transform from this element’s coordinate space to the specified visual’s coordinate space, including any transform an element between them applies to its children. Both elements must be in the same visual tree.

public GeneralTransform TransformToVisual(Element visual)
exception condition
InvalidOperationException The elements are not in the same visual tree.