AvaloniaObject.

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

Summary

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

Syntax

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

Parameters

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

Return Value

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