INotifyCollectionChanged.CollectionChanged Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.