ObservableCollection in WPF

ObservableCollection represents a dynamic data collection. It notifies WPF/Silverlight application whenever an item gets added, removed from the collection or when the whole list is refreshed. ObservableCollection Class is an inbuilt class which implements INotifyCollectionChanged and INotifyPropertyChanged.

Whenever an item is added or removed from the ObservableCollection, CollectionChanged event which is exposed by the INotifyCollectionChanged Interface is fired and will automatically update the view.

Namespace: System.Collections.ObjectModel
Assembly: System (in System.dll)

This class provides many properties and methods. Some of the Properties are – Count, Items. Some of its methods are – Add(), Remove(), RemoveAt().

You can go through the entire list in MSDN Documentation.




We’ll be Back Soon !!!
This article is in updation process.. Sorry for Inconvenience..!!