[]
Gets the position of the pointer performing the drag gesture relatively to the specified element.
public Point GetPosition(UIElement relativeTo)
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. |
Type | Description |
---|---|
Point |
Gets the position of the pointer or finger.
public static Point GetPosition(RoutedEventArgs args, UIElement relativeTo)
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. |
Type | Description |
---|---|
Point |