AvaloniaObjectExtensions.

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

Summary

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

Syntax

public static IDisposable Bind(this IAvaloniaObject target, AvaloniaProperty property, IObservable<BindingValue<object>> source, BindingPriority priority = LocalValue)

Parameters

Name Type Description
target IAvaloniaObject The object.
property AvaloniaProperty The property.
source IObservable<BindingValue<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.