AvaloniaObjectSetValueT(StyledPropertyT, T, BindingPriority) Method

Sets a AvaloniaProperty value.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public IDisposable? SetValue<T>(
	StyledProperty<T> property,
	T value,
	BindingPriority priority = BindingPriority.LocalValue
)

Parameters

property  StyledPropertyT
The property.
value  T
The value.
priority  BindingPriority  (Optional)
The priority of the value.

Type Parameters

T
The type of the property.

Return Value

IDisposable
An IDisposable if setting the property can be undone, otherwise null.

See Also