Notifies listeners of dynamic changes, such as when items get added and removed or the whole list is refreshed.
See Also: INotifyCollectionChanged
public interface INotifyCollectionChanged
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 TLA2#tla_ui automatically, the collection must implement the INotifyCollectionChanged interface. This interface exposes the INotifyCollectionChanged.CollectionChanged event that must be raised whenever the underlying collection changes.
TLA2#tla_winclient provides the ObservableCollection`1 class, which is a built-in implementation of a data collection that exposes the INotifyCollectionChanged interface. For an example, see Implement an Observable Collection.
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.
Assembly: System (in System.dll)
Assembly Versions: 22.214.171.124
The members of System.Collections.Specialized.INotifyCollectionChanged are listed below.
Occurs when the collection changes.