Compartilhar via


TreeView.ItemInvoked Evento

Definição

Ocorre quando um item na árvore é invocado.

API equivalente do WinUI 2 para UWP: Microsoft.UI.Xaml.Controls.TreeView.ItemInvoked (para WinUI no SDK do Aplicativo Windows, consulte os namespaces SDK do Aplicativo Windows).

// Register
event_token ItemInvoked(TypedEventHandler<TreeView, TreeViewItemInvokedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TreeView::ItemInvoked_revoker ItemInvoked(auto_revoke_t, TypedEventHandler<TreeView, TreeViewItemInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<TreeView,TreeViewItemInvokedEventArgs> ItemInvoked;
function onItemInvoked(eventArgs) { /* Your code */ }
treeView.addEventListener("iteminvoked", onItemInvoked);
treeView.removeEventListener("iteminvoked", onItemInvoked);
- or -
treeView.oniteminvoked = onItemInvoked;
Public Custom Event ItemInvoked As TypedEventHandler(Of TreeView, TreeViewItemInvokedEventArgs) 

Tipo de evento

Aplica-se a