Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.08 KB

drageventargs_getposition_1813281865.md

File metadata and controls

33 lines (21 loc) · 1.08 KB
-api-id -api-type
M:Windows.UI.Xaml.DragEventArgs.GetPosition(Windows.UI.Xaml.UIElement)
winrt method

Windows.UI.Xaml.DragEventArgs.GetPosition

-description

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

-parameters

-param relativeTo

The UIElement for which to get a relative drop point.

-returns

A point in the coordinate system that is relative to the element specified in relativeTo.

-remarks

For drag-drop operations involving a UI container, you typically call GetPosition using a relativeTo reference to the object that is the sender of the event. This gives the relative position within the container.

If this DragEventArgs is associated with the UIElement.Drop event, then the return value of GetPosition is the drop point.

-examples

-see-also

Drag-and-drop overview, Point