INotifyCollectionChanged.CollectionChanged Event (System.Collections.Specialized)

Switch View :
ScriptFree
.NET Framework Class Library for Silverlight
INotifyCollectionChanged.CollectionChanged Event

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

Visual Basic (Declaration)
Event CollectionChanged As NotifyCollectionChangedEventHandler
C#
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<T>

Data Binding

How to: Bind to Hierarchical Data and Create a Master/Details View

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.

See Also

Reference