The INotifyPropertyChanged interface INotifyPropertyChanged used to notify clients, usually associating clients, with a property value change.
For example, consider a Person object with the FirstName property. To provide a general notification of property changes, the Person type implements the INotifyPropertyChanged interface and raises the PropertyChanged event when FirstName changes.
To notify of a change in the binding between the associated client and the data source, your associated type must either:
Implement the INotifyPropertyChanged interface ( INotifyPropertyChanged ).
Provide a change event for each property of the associated type.
Do not use both.
Example:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Runtime.CompilerServices; using System.Windows.Forms;
Jignesh.Raj
source share