AvaloniaObjectBindT(DirectPropertyBaseT, IObservableObject) 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<Object?> source
)

Parameters

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