TreeView.DragItemsCompleted Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a drag operation that involves one of the items in the view is ended.
Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeView.DragItemsCompleted (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;
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"/>
Event Type
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
To receive this event, set the CanDragItems property to true.