AvaloniaObjectExtensionsToBindingT Method

Converts an IObservableT to an IBinding.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IBinding ToBinding<T>(
	this IObservable<T> source
)

Parameters

source  IObservableT
The observable

Type Parameters

T
The type produced by the observable.

Return Value

IBinding
An IBinding.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also