Compartilhar via


ItemsSourceView.CollectionChanged Evento

Definição

Ocorre quando a coleção foi alterada para indicar o motivo da alteração e quais itens foram alterados.

// Register
event_token CollectionChanged(NotifyCollectionChangedEventHandler const& handler) const;

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

// Revoke with event_revoker
ItemsSourceView::CollectionChanged_revoker CollectionChanged(auto_revoke_t, NotifyCollectionChangedEventHandler const& handler) const;
public event NotifyCollectionChangedEventHandler CollectionChanged;
function onCollectionChanged(eventArgs) { /* Your code */ }
itemsSourceView.addEventListener("collectionchanged", onCollectionChanged);
itemsSourceView.removeEventListener("collectionchanged", onCollectionChanged);
- or -
itemsSourceView.oncollectionchanged = onCollectionChanged;
Public Custom Event CollectionChanged As NotifyCollectionChangedEventHandler Implements CollectionChanged

Tipo de evento

Implementações

Aplica-se a