DragStartingEventArgs.GetPosition(UIElement) Method

Definition

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

Equivalent WinUI method: Microsoft.UI.Xaml.DragStartingEventArgs.GetPosition.

public:
 virtual Point GetPosition(UIElement ^ relativeTo) = GetPosition;
Point GetPosition(UIElement const & relativeTo);
public Point GetPosition(UIElement relativeTo);
function getPosition(relativeTo)
Public Function GetPosition (relativeTo As UIElement) As Point

Parameters

relativeTo
UIElement

The UIElement for which to get a relative drop point.

Returns

Point

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

Applies to

See also