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 の場合は、元のドラッグ ソースを削除する必要があります。

DragStartingDropCompleted は、 CanDrag が の true場合にのみ発生します。

DropCompleted はルーティング イベントです。 ルーティング イベントの概念の詳細については、「 イベントとルーティング イベントの概要」を参照してください。

適用対象

こちらもご覧ください