Event Args. Get Position(UIElement) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: virtual Point GetPosition(UIElement ^ relativeTo) = GetPosition;
Point GetPosition(UIElement const& relativeTo);
public Point GetPosition(UIElement relativeTo);
Public Function GetPosition (relativeTo As UIElement) As Point
A point in the coordinate system that is relative to the element specified in relativeTo.
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.
Submit and view feedback for