ListViewBase.DragItemsCompleted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当涉及视图中某个项的拖动操作结束时发生。
// Register
event_token DragItemsCompleted(TypedEventHandler<ListViewBase, DragItemsCompletedEventArgs const&> const& handler) const;
// Revoke with event_token
void DragItemsCompleted(event_token const* cookie) const;
// Revoke with event_revoker
ListViewBase::DragItemsCompleted_revoker DragItemsCompleted(auto_revoke_t, TypedEventHandler<ListViewBase, DragItemsCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<ListViewBase,DragItemsCompletedEventArgs> DragItemsCompleted;
function onDragItemsCompleted(eventArgs) { /* Your code */ }
listViewBase.addEventListener("dragitemscompleted", onDragItemsCompleted);
listViewBase.removeEventListener("dragitemscompleted", onDragItemsCompleted);
- or -
listViewBase.ondragitemscompleted = onDragItemsCompleted;
Public Custom Event DragItemsCompleted As TypedEventHandler(Of ListViewBase, DragItemsCompletedEventArgs)
事件类型
注解
重要
若要接收此事件, 必须将 CanDragItems 属性设置为 true
。