Thursday, October 30, 2008

ObservableCollection

ObservableCollection Class its a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.

WPF provides the ObservableCollection class, which is a built-in implementation of a data collection that implements the INotifyCollectionChanged interface

In WPF data binding The INotifyPropertyChanged interface is used to notify clients, typically binding clients, that a property value has changed.

Suppose you have UDT (User Defined Type object) called Address which Implements the INotifyPropertyChanged Interface and has the the following fields defined Name,Phone,Email these Fields are bind to WPF controls called TextBox, anywhere in the program any one of the field is changed the INotifyPropertyChanged interface event PropertyChanged event fired.
so that WPF user control can updated with New value.


Thanks
SreenivasaRagavan

No comments: