AvaloniaObject.

SetValue<T>(StyledPropertyBase<T>, T, BindingPriority) Method

Summary

Sets a AvaloniaProperty value.
Namespace
Avalonia
Containing Type
AvaloniaObject

Syntax

public IDisposable SetValue<T>(StyledPropertyBase<T> property, T value, BindingPriority priority = LocalValue)

Type Parameters

Name Description
T The type of the property.

Parameters

Name Type Description
property StyledPropertyBase<T> The property.
value T The value.
priority BindingPriority The priority of the value.

Return Value

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