Represents a dynamic data collection that provides notifications when items get added, removed, or when the entire list is refreshed.
Public Class ObservableCollection(Of T) _ Inherits Collection(Of T) _ Implements INotifyCollectionChanged, INotifyPropertyChanged
public class ObservableCollection<T> : Collection<T>, INotifyCollectionChanged, INotifyPropertyChanged
The type of items in the collection.
The ObservableCollection<(Of <(T>)>) type exposes the following members.
You can enumerate over any collection that implements the IEnumerable interface, and this is sufficient for one-time data binding in Silverlight. However, to set up dynamic bindings so that insertions or deletions in the collection can update the UI automatically, the collection must implement the INotifyCollectionChanged interface. This interface exposes the CollectionChanged event, an event that should be raised whenever the underlying collection changes.
Silverlight provides the ObservableCollection<(Of <(T>)>) class, which is a base class data collection that implements the INotifyCollectionChanged interface, as well as the INotifyPropertyChanged interface. It also has the expected collection support, defined by deriving from the Collection<(Of <(T>)>) class.
For an example, see How to: Bind to Hierarchical Data and Create a Master/Details View.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.