AvaloniaObjectBindT(DirectPropertyBaseT, IObservableBindingValueT) Method

Binds a AvaloniaProperty to an observable.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public IDisposable Bind<T>(
	DirectPropertyBase<T> property,
	IObservable<BindingValue<T>> source
)

Parameters

property  DirectPropertyBaseT
The property.
source  IObservableBindingValueT
The observable.

Type Parameters

T
The type of the property.

Return Value

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

See Also