[]
        
(Showing Draft Content)

C1.WinUI.Core.C1InputEventArgs.GetPosition

GetPosition Method

GetPosition(FrameworkElement)

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

Declaration
public Point GetPosition(FrameworkElement relativeTo)
Parameters
Type Name Description
FrameworkElement relativeTo

Any visual 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, FrameworkElement)

Gets the position of the pointer or finger.

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

The OriginalEventArgs instance containing the manipulation data.

FrameworkElement relativeTo

Any visual 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