Click or drag to resize

BindableBaseSetINotifyPropertyChangedPropertyT Method

Checks to see if the property is the same as the specified value. It they're different then set the value and raise an PropertyChanged event. Property changes on the new value are also listened to and, if one occurs, the propertyChangedCallback handler will be invoked.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
protected bool SetINotifyPropertyChangedProperty<T>(
	ref T storage,
	T value,
	PropertyChangedEventHandler propertyChangedCallback,
	string propName = null
)
where T : INotifyPropertyChanged

Parameters

storage
Type: T
Reference to the value that will be updated.
value
Type: T
The new value to use.
propertyChangedCallback
Type: System.ComponentModelPropertyChangedEventHandler
The callback to invoke when a property in the new value changes.
propName (Optional)
Type: SystemString
The name of the property.

Type Parameters

T
The type of the property.

Return Value

Type: Boolean
True if the value is changed, otherwise false.
See Also