[]
        
(Showing Draft Content)

C1.WPF.Extensions.C1TransformToVisual

C1TransformToVisual Method

C1TransformToVisual(UIElement, UIElement)

Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.

Declaration
public static GeneralTransform C1TransformToVisual(this UIElement element, UIElement visual)
Parameters
Type Name Description
UIElement element

The UIElement that defines the source coordinates.

UIElement visual

The UIElement that defines the target coordinates.

Returns
Type Description
GeneralTransform

A transform object that can be used to transform coordinates from the UIElement to the specified object.

Remarks

This is an improved version of UIElement.TransformToVisual. It works in cases that TransformToVisual doesn't, like with UIElements inside Popups.