System.ComponentModel.INotifyPropertyChanged

Notifies clients that a property value has changed.

See Also: INotifyPropertyChanged

Syntax

public interface INotifyPropertyChanged

Remarks

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

For example, consider a Person object with a property called FirstName. To provide generic property-change notification, the Person type implements the INotifyPropertyChanged interface and raises a INotifyPropertyChanged.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.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0

The members of System.ComponentModel.INotifyPropertyChanged are listed below.

Public Events

PropertyChanged

Occurs when a property value changes.