Notifies listeners of dynamic changes, such as when items get added and removed or the whole list is refreshed.
Assembly: WindowsBase (in WindowsBase.dll)
You can enumerate over any collection that implements the IEnumerable interface. However, to set up dynamic bindings so that insertions or deletions in the collection update the UI automatically, the collection must implement the interface. This interface exposes the CollectionChanged event that must be raised whenever the underlying collection changes.
WPF provides the ObservableCollection(T) class, which is a built-in implementation of a data collection that exposes the interface. For an example, see How to: Create and Bind to an ObservableCollection.
The individual data objects within the collection must satisfy the requirements described in the Binding Sources Overview.
If you have an advanced scenario and want to implement your own collection, consider using IList, which provides a non-generic collection of objects that can be individually accessed by index and provides the best performance.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.