Skip to main content

ToBinding<T> Method

Converts an IObservable(T) to an IBinding.

Definition​

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

public static IBinding ToBinding<T>(
this IObservable<T> source
)

Parameters​

  IObservable(T)
The observable

Type Parameters​

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 IObservable(T). 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​

Reference​

AvaloniaObjectExtensions Class
Avalonia Namespace