Skip to main content

Bind<T>(DirectPropertyBase<T>, IObservable<BindingValue<T>>) Method

Binds a AvaloniaProperty to an observable.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public IDisposable Bind<T>(
DirectPropertyBase<T> property,
IObservable<BindingValue<T>> source
)

Parameters

  DirectPropertyBase(T)
The property.
  IObservable(BindingValue(T))
The observable.

Type Parameters

The type of the property.

Return Value

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

See Also

Reference

AvaloniaObject Class
Bind Overload
Avalonia Namespace