Export (0) Print
Expand All

DragEventArgs.GetPosition Method

Silverlight

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.

To obtain a coordinate in the coordinate space of the Silverlight content area, pass null for relativeTo.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft