| ObservableObjectBaseSetPropertyT Method (T, T, String) |
Sets the property and raises the
PropertyChanged event for the property identified by the specified property expression.
[NotifyPropertyChangedInvocator]
Namespace:
TomsToolbox.Wpf
Assembly:
TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax protected bool SetProperty<T>(
ref T? backingField,
T value,
string propertyName = null
)
Protected Function SetProperty(Of T) (
ByRef backingField As T,
value As T,
Optional propertyName As String = Nothing
) As Boolean
Parameters
- backingField
- Type: T
The backing field for the property. - value
- Type: T
The value. - propertyName (Optional)
- Type: SystemString
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
Type:
BooleanTrue if value has changed and the PropertyChange event was raised.
See Also