TreeView.DragItemsCompleted 事件

定义

当涉及视图中某个项的拖动操作结束时发生。

// Register
event_token DragItemsCompleted(TypedEventHandler<TreeView, TreeViewDragItemsCompletedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TreeView::DragItemsCompleted_revoker DragItemsCompleted(auto_revoke_t, TypedEventHandler<TreeView, TreeViewDragItemsCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<TreeView,TreeViewDragItemsCompletedEventArgs> DragItemsCompleted;
function onDragItemsCompleted(eventArgs) { /* Your code */ }
treeView.addEventListener("dragitemscompleted", onDragItemsCompleted);
treeView.removeEventListener("dragitemscompleted", onDragItemsCompleted);
- or -
treeView.ondragitemscompleted = onDragItemsCompleted;
Public Custom Event DragItemsCompleted As TypedEventHandler(Of TreeView, TreeViewDragItemsCompletedEventArgs) 
<TreeView DragItemsCompleted="eventhandler"/>

事件类型

注解

若要接收此事件,请将 CanDragItems 属性设置为 true

适用于