INotifyCollectionChanged.CollectionChanged Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when the items list of the collection has changed, or the collection is reset.

Namespace: System.Collections.Specialized
Assembly: System (in System.dll)

Syntax

Event CollectionChanged As NotifyCollectionChangedEventHandler
event NotifyCollectionChangedEventHandler CollectionChanged

Remarks

Raise this event whenever your collection processes calls to typical collection members (Add, Remove, Insert, etc.).

The event data of this event (NotifyCollectionChangedEventArgs) reports information about the nature of the collection change.

This interface does not report changes to the individual properties of any objects that are contained in the collection, only that changes have occurred at the collection level. To report changes to properties using data binding at the object level, use INotifyPropertyChanged.

Examples

ObservableCollection<(Of <(T>)>)

Data binding for Windows Phone 8

Walkthrough: Updating a local database app for Windows Phone 8

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

INotifyCollectionChanged Interface

System.Collections.Specialized Namespace