AvaloniaObjectSetValueT(StyledPropertyT, T, BindingPriority) Method
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public IDisposable? SetValue<T>(
StyledProperty<T> property,
T value,
BindingPriority priority = BindingPriority.LocalValue
)
Public Function SetValue(Of T) (
property As StyledProperty(Of T),
value As T,
Optional priority As BindingPriority = BindingPriority.LocalValue
) As IDisposable
member SetValue :
property : StyledProperty<'T> *
value : 'T *
?priority : BindingPriority
(* Defaults:
let _priority = defaultArg priority BindingPriority.LocalValue
*)
-> IDisposable
- property StyledPropertyT
- The property.
- value T
- The value.
- priority BindingPriority (Optional)
- The priority of the value.
- T
- The type of the property.
IDisposable
An
IDisposable if setting the property can be undone, otherwise null.