BindableCoreSetPropertyT Method

Compares the current and new values for a given property. If the value has changed, raises the PropertyChanging event, updates the property with the new value, then raises the PropertyChanged event.

Definition

Namespace: Aliquo.Core.Base
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public bool SetProperty<T>(
	ref T propertyBackStore,
	T newValue,
	string propertyName = null
)

Parameters

propertyBackStore  T
Property back store.
newValue  T
New value.
propertyName  String  (Optional)
Property name.

Type Parameters

T
Object type.

Return Value

Boolean
if the property value was modified; otherwise, .

See Also