| ObservableObjectBaseSetPropertyT(T, T, ActionT, T, String) Method |
Sets the property and raises the
PropertyChanged event for the property identified by the specified property expression.
[NotifyPropertyChangedInvocator] Namespace: TomsToolbox.WpfAssembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax protected bool SetProperty<T>(
ref T? backingField,
T value,
Action<T, T> changeCallback,
string propertyName
)
Protected Function SetProperty(Of T) (
ByRef backingField As T,
value As T,
changeCallback As Action(Of T, T),
propertyName As String
) As Boolean
Parameters
- backingField T
- The backing field for the property.
- value T
- The value.
- changeCallback ActionT, T
- The callback that is invoked if the value has changed. Parameters are (oldValue, newValue).
- propertyName String
- Name of the property; omit this parameter to use the callers name provided by the CallerMemberNameAttribute
Type Parameters
- T
- The type of the property.
Return Value
Boolean True if value has changed and the PropertyChange event was raised.
See Also