[]
        
(Showing Draft Content)

C1.WPF.C1InputEventArgs.GetPosition

GetPosition Method

GetPosition(UIElement)

Gets the position of the pointer performing the drag gesture relatively to the specified element.

Declaration
public Point GetPosition(UIElement relativeTo)
Parameters
Type Name Description
UIElement 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.

Returns
Type Description
Point

GetPosition(RoutedEventArgs, UIElement)

Gets the position of the pointer or finger.

Declaration
public static Point GetPosition(RoutedEventArgs args, UIElement relativeTo)
Parameters
Type Name Description
RoutedEventArgs args

The RoutedEventArgs instance containing the manipulation data.

UIElement 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.

Returns
Type Description
Point