AvaloniaObjectBindT(DirectPropertyBaseT, IObservableT) 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<T> source
)

Parameters

property  DirectPropertyBaseT
The property.
source  IObservableT
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