DragEventArgs.GetPosition Method

July 28, 2014

Returns a drop point that is relative to a specified UIElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public Point GetPosition(
	UIElement relativeTo


Type: System.Windows.UIElement
The UIElement for which to get a relative drop point.

Return Value

Type: System.Windows.Point
A drop point that is relative to the element specified in relativeTo.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2014 Microsoft