Click to Rate and Give Feedback

  Switch on low bandwidth view
.NET Framework Class Library for Silverlight
INotifyCollectionChanged Interface

Notifies listeners of dynamic changes to a collection, such as when items are added and removed, or the entire collection object is reset.

Namespace:  System.Collections.Specialized
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public Interface INotifyCollectionChanged
Visual Basic (Usage)
Dim instance As INotifyCollectionChanged
C#
public interface INotifyCollectionChanged

INotifyCollectionChanged defines one member, CollectionChanged. The event data of this event (NotifyCollectionChangedEventArgs) reports information about the nature of the collection change.

To provide change notifications for bindings to ItemsControl and its subclasses, your collection must implement this interface. Before implementing your own collection class, consider using the ObservableCollection<(Of <(T>)>) class that implements INotifyCollectionChanged and INotifyPropertyChanged.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker