SetValue<T>(StyledProperty<T>, T, BindingPriority) Method
Sets a AvaloniaProperty value.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
Parameters
- StyledProperty(T)
- The property.
- T
- The value.
- BindingPriority (Optional)
- The priority of the value.
Type Parameters
- The type of the property.
Return Value
IDisposable
An IDisposable if setting the property can be undone, otherwise null.