AvaloniaObjectExtensionsGetBindingObservableTSource, TResult(AvaloniaObject, AvaloniaPropertyTSource, FuncTSource, TResult) Method
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IObservable<BindingValue<TResult>> GetBindingObservable<TSource, TResult>(
this AvaloniaObject o,
AvaloniaProperty<TSource> property,
Func<TSource, TResult> converter
)
<ExtensionAttribute>
Public Shared Function GetBindingObservable(Of TSource, TResult) (
o As AvaloniaObject,
property As AvaloniaProperty(Of TSource),
converter As Func(Of TSource, TResult)
) As IObservable(Of BindingValue(Of TResult))
[<ExtensionAttribute>]
static member GetBindingObservable :
o : AvaloniaObject *
property : AvaloniaProperty<'TSource> *
converter : Func<'TSource, 'TResult> -> IObservable<BindingValue<'TResult>>
- o AvaloniaObject
- property AvaloniaPropertyTSource
- converter FuncTSource, TResult
- A method which is executed to convert each property value to TResult.
- TSource
- TResult
IObservableBindingValueTResult
An observable which fires immediately with the current value of the property on the
object and subsequently each time the property value changes.
In Visual Basic and C#, you can call this method as an instance method on any object of type
AvaloniaObject. 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).
The subscription to o is created using a weak reference.