Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Extensions Class / C1TransformToVisual Method
The System.Windows.UIElement that defines the source coordinates.
The System.Windows.UIElement that defines the target coordinates.

In This Topic
    C1TransformToVisual Method (Extensions)
    In This Topic
    Returns a transform object that can be used to transform coordinates from the System.Windows.UIElement to the specified object.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function C1TransformToVisual( _
       ByVal element As UIElement, _
       ByVal visual As UIElement _
    ) As GeneralTransform
    [Extension()]
    public static GeneralTransform C1TransformToVisual( 
       UIElement element,
       UIElement visual
    )

    Parameters

    element
    The System.Windows.UIElement that defines the source coordinates.
    visual
    The System.Windows.UIElement that defines the target coordinates.

    Return Value

    A transform object that can be used to transform coordinates from the System.Windows.UIElement to the specified object.
    Remarks
    This is an improved version of System.Windows.UIElement.TransformToVisual. It works in cases that TransformToVisual doesn't, like with UIElements inside System.Windows.Controls.Primitives.Popups.
    See Also