UIElement.DropCompleted 事件

定義

發生于以這個專案做為結束來源的拖放作業時。

// Register
event_token DropCompleted(TypedEventHandler<UIElement, DropCompletedEventArgs const&> const& handler) const;

// Revoke with event_token
void DropCompleted(event_token const* cookie) const;

// Revoke with event_revoker
UIElement::DropCompleted_revoker DropCompleted(auto_revoke_t, TypedEventHandler<UIElement, DropCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<UIElement,DropCompletedEventArgs> DropCompleted;
function onDropCompleted(eventArgs) { /* Your code */ }
uIElement.addEventListener("dropcompleted", onDropCompleted);
uIElement.removeEventListener("dropcompleted", onDropCompleted);
- or -
uIElement.ondropcompleted = onDropCompleted;
Public Custom Event DropCompleted As TypedEventHandler(Of UIElement, DropCompletedEventArgs) 
<uiElement DropCompleted="eventhandler"/>

事件類型

備註

當拖曳的專案已卸載時,DropCompleted 會在 DragStarting之後,在拖曳來源元素上引發。 您可以處理此事件,並根據事件引數中的 DropResult 採取適當的動作。 例如,如果 DropResult 是 Move,您應該刪除原始拖曳來源。

只有在 CanDragtrue時,才會引發 DragStarting 和 DropCompleted。

DropCompleted 是路由事件。 如需路由事件概念的詳細資訊,請參閱 事件和路由事件概觀

適用於

另請參閱