ComponentOne FinancialChart for WPF
C1.WPF 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
    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
    'Usage
     
    
    Dim element As UIElement
    Dim visual As UIElement
    Dim value As GeneralTransform
     
    value = Extensions.C1TransformToVisual(element, visual)
    [Extension()]
    public static GeneralTransform C1TransformToVisual( 
       UIElement element,
       UIElement visual
    )
    [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