UIElement.DropCompleted Event

Definition

Occurs when a drag-and-drop operation with this element as the source is ended.

C#
public event TypedEventHandler<UIElement,DropCompletedEventArgs> DropCompleted;
XAML
<uiElement DropCompleted="eventhandler"/>

Event Type

Remarks

DropCompleted is raised on the drag source element after DragStarting, when the dragged element has been dropped. You can handle this event and take appropriate action based on the DropResult in the event args. For example, if the DropResult is Move, you should delete the original drag source.

DragStarting and DropCompleted are raised only if CanDrag is true.

DropCompleted is a routed event. For more info on the routed event concept, see Events and routed events overview.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also