共用方式為


TreeView.DragItemsCompleted 事件

定義

發生于包含檢視中其中一個專案的拖曳作業結束時。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeView.DragItemsCompleted (for WinUI in the Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

// 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"/>

事件類型

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

若要接收此事件,請將 CanDragItems 屬性設定為 true

適用於