AvaloniaObject.

Bind<T>(AvaloniaProperty<T>, IObservable<T>, BindingPriority) Method

Summary

Binds a AvaloniaProperty to an observable.
Namespace
Avalonia
Containing Type
AvaloniaObject

Syntax

public IDisposable Bind<T>(AvaloniaProperty<T> property, IObservable<T> source, BindingPriority priority = LocalValue)

Type Parameters

Name Description
T The type of the property.

Parameters

Name Type Description
property AvaloniaProperty<T> The property.
source IObservable<T> The observable.
priority BindingPriority The priority of the binding.

Return Value

Type Description
IDisposable A disposable which can be used to terminate the binding.