Partager via


ItemCollection.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.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Private Event CollectionChanged As NotifyCollectionChangedEventHandler
    Implements INotifyCollectionChanged.CollectionChanged
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged

Implements

INotifyCollectionChanged.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 changes that 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

Platforms

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