ItemsSourceView.CollectionChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the collection has changed to indicate the reason for the change and which items changed.
// 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
Event Type
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for