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

事件类型

实现

适用于