Freigeben über


TreeView.Collapsed Ereignis

Definition

Tritt auf, wenn ein Knoten in der Struktur reduziert wird.

Entsprechende WinUI 2-API für UWP: Microsoft.UI.Xaml.Controls.TreeView.Collapsed (informationen zu WinUI in der Windows App SDK finden Sie im Windows App SDK Namespaces).

// Register
event_token Collapsed(TypedEventHandler<TreeView, TreeViewCollapsedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TreeView::Collapsed_revoker Collapsed(auto_revoke_t, TypedEventHandler<TreeView, TreeViewCollapsedEventArgs const&> const& handler) const;
public event TypedEventHandler<TreeView,TreeViewCollapsedEventArgs> Collapsed;
function onCollapsed(eventArgs) { /* Your code */ }
treeView.addEventListener("collapsed", onCollapsed);
treeView.removeEventListener("collapsed", onCollapsed);
- or -
treeView.oncollapsed = onCollapsed;
Public Custom Event Collapsed As TypedEventHandler(Of TreeView, TreeViewCollapsedEventArgs) 

Ereignistyp

Gilt für: