Share via


TreeView.DragItemsCompleted Event

Definition

Occurs when a drag operation that involves one of the items in the view is ended.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

// 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;
Public Custom Event DragItemsCompleted As TypedEventHandler(Of TreeView, TreeViewDragItemsCompletedEventArgs) 
<TreeView DragItemsCompleted="eventhandler"/>

Event Type

Remarks

To receive this event, set the CanDragItems property to true.

Applies to