|
Answer» The INotifyPropertyChanged interface is used to notify clients, TYPICALLY binding clients, that a property value has changed.For EXAMPLE, consider a STOCK object with a property called StockCount. To provide generic property-change notification, the Stock type implements the INotifyPropertyChanged interface and raises a PropertyChanged EVENT when StockCount 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.
The INotifyPropertyChanged interface is used to notify clients, typically binding clients, that a property value has changed.For example, consider a Stock object with a property called StockCount. To provide generic property-change notification, the Stock type implements the INotifyPropertyChanged interface and raises a PropertyChanged event when StockCount is changed.For change notification to occur in a binding between a bound client and a data source, your bound type should either:
|