In C#, theINotifyPropertyChangedinterface is used notify clients, typically binding clients, that aproperty value has changed.
For example, consider anEmployee class object with a property calledFirstName. To provide property-change notification, theEmployee class type implements theINotifyPropertyChangedinterface and raises aPropertyChangedevent whenFirstNameis changed.
For change notification to occur in a binding between a bound client and a data source, your bound type should either:
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In C#, the INotifyPropertyChanged interface is used notify clients, typically binding clients, that a property value has changed.
For example, consider an Employee class object with a property called FirstName. To provide property-change notification, the Employee class type implements the INotifyPropertyChanged interface and raises a PropertyChanged event when FirstName is changed.
For change notification to occur in a binding between a bound client and a data source, your bound type should either:
· Implement the INotifyPropertyChanged interface (preferred).
· Provide a change event for each property of the bound type.
Do not do both.
For example, in below we have defined a property ‘FirstName’
Now, we have implementing the INotifyPropertyChanged interface
Output:
I think in above example you are understand about raises event when 'FirstName' property values are changed.
For more details , you click here