AvaloniaObjectSetAndRaiseT Method
Sets the backing field for a direct avalonia property, raising the
PropertyChanged event if the value has changed.
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
protected bool SetAndRaise<T>(
DirectPropertyBase<T> property,
ref T field,
T value
)
Protected Function SetAndRaise(Of T) (
property As DirectPropertyBase(Of T),
ByRef field As T,
value As T
) As Boolean
member SetAndRaise :
property : DirectPropertyBase<'T> *
field : 'T byref *
value : 'T -> bool
- property DirectPropertyBaseT
- The property.
- field T
- The backing field.
- value T
- The value.
- T
- The type of the property.
Boolean
True if the value changed, otherwise false.