Method SetProperty
SetProperty<T>(ref T?, T?, string?, Action?)
Sets field value and calls OnPropertyChanged(string?) method.
protected virtual bool SetProperty<T>(ref T? storage, T? value, string? propertyName = null, Action? changedAction = null)
Parameters
storage
TField where property is stored.
value
TNew property value.
propertyName
stringName of the property.
changedAction
ActionThis action is called when property changes
Returns
Type Parameters
T