Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / C1InputEventArgs Class / GetPosition Method / GetPosition(UIElement) Method
Any UIElement-derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.

In This Topic
    GetPosition(UIElement) Method
    In This Topic
    Gets the position of the pointer performing the drag gesture relatively to the specified element.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetPosition( _
       ByVal relativeTo As UIElement _
    ) As Point
    public Point GetPosition( 
       UIElement relativeTo
    )

    Parameters

    relativeTo
    Any UIElement-derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.
    See Also