ItemsSourceView.CollectionChanged 事件

定義

發生於集合已變更以指出變更的原因和變更專案的原因時。

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

事件類型

實作

適用於