ComponentOne Basic Library for UWP
C1.UWP Assembly / C1.Xaml Namespace / Extensions Class / C1TransformToVisual Method
The Windows.UI.Xaml.UIElement that defines the source coordinates.
The Windows.UI.Xaml.UIElement that defines the target coordinates.

In This Topic
    C1TransformToVisual Method
    In This Topic
    Returns a transform object that can be used to transform coordinates from the Windows.UI.Xaml.UIElement to the specified object.
    Syntax
    'Declaration
     
    Public Shared Function C1TransformToVisual( _
       ByVal element As Windows.UI.Xaml.UIElement, _
       ByVal visual As Windows.UI.Xaml.UIElement _
    ) As Windows.UI.Xaml.Media.GeneralTransform
    public static Windows.UI.Xaml.Media.GeneralTransform C1TransformToVisual( 
       Windows.UI.Xaml.UIElement element,
       Windows.UI.Xaml.UIElement visual
    )

    Parameters

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

    Return Value

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