Summary
Binds a
AvaloniaProperty
to an observable.
- Namespace
- Avalonia
- Containing Type
- IAvaloniaObject
Syntax
IDisposable Bind<T>(StyledPropertyBase<T> property, IObservable<BindingValue<T>> source, BindingPriority priority = LocalValue)
Type Parameters
Name | Description |
---|---|
T | The type of the property. |
Parameters
Name | Type | Description |
---|---|---|
property | StyledPropertyBase |
The property. |
source | IObservable |
The observable. |
priority | BindingPriority | The priority of the binding. |
Return Value
Type | Description |
---|---|
IDisposable | A disposable which can be used to terminate the binding. |