PropertyValue.OnPropertyChanged Method

Definition

Raises the PropertyChanged event when the property value has changed.

Overloads

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event with the specified PropertyChangedEventArgs objects.

OnPropertyChanged(String)

Raises the PropertyChanged event that uses the name of the property that changed.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event with the specified PropertyChangedEventArgs objects.

C#
protected virtual void OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs e);

Parameters

e
PropertyChangedEventArgs

A PropertyChangedEventArgs object that provides the name of the property that changed.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OnPropertyChanged(String)

Raises the PropertyChanged event that uses the name of the property that changed.

C#
protected virtual void OnPropertyChanged(string propertyName);

Parameters

propertyName
String

The name of the property that changed.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1