GetPosition Method
Collapse the table of content
Expand the table of content

DragEventArgs.GetPosition Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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
)

Parameters

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

Show:
© 2017 Microsoft