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 |
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.
|