AvaloniaObjectBindT(StyledPropertyT, IObservableBindingValueT, BindingPriority) 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>(
	StyledProperty<T> property,
	IObservable<BindingValue<T>> source,
	BindingPriority priority = BindingPriority.LocalValue
)

Parameters

property  StyledPropertyT
The property.
source  IObservableBindingValueT
The observable.
priority  BindingPriority  (Optional)
The priority of the binding.

Type Parameters

T
The type of the property.

Return Value

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

See Also