TreeView.Expanding 事件

定义

当树中的节点开始展开时发生。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeView.Windows 应用 SDK中的 WinUI 扩展 (,请参阅Windows 应用 SDK命名空间)

// Register
event_token Expanding(TypedEventHandler<TreeView, TreeViewExpandingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TreeView::Expanding_revoker Expanding(auto_revoke_t, TypedEventHandler<TreeView, TreeViewExpandingEventArgs const&> const& handler) const;
public event TypedEventHandler<TreeView,TreeViewExpandingEventArgs> Expanding;
function onExpanding(eventArgs) { /* Your code */ }
treeView.addEventListener("expanding", onExpanding);
treeView.removeEventListener("expanding", onExpanding);
- or -
treeView.onexpanding = onExpanding;
Public Custom Event Expanding As TypedEventHandler(Of TreeView, TreeViewExpandingEventArgs) 

事件类型

适用于