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