Skip to main content

GetBindingSubject(AvaloniaObject, AvaloniaProperty, BindingPriority) Method

Gets a subject for a AvaloniaProperty.

Definition

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

public static ISubject<BindingValue<Object>> GetBindingSubject(
this AvaloniaObject o,
AvaloniaProperty property,
BindingPriority priority = BindingPriority.LocalValue
)

Parameters

  AvaloniaObject
The object.
  AvaloniaProperty
The property.
  BindingPriority  (Optional)
The priority with which binding values are written to the object.

Return Value

ISubject(BindingValue(Object))
An ISubject which can be used for two-way binding to/from the property.

Usage Note

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).

See Also

Reference

AvaloniaObjectReactiveExtensions Class
GetBindingSubject Overload
Avalonia.ReactiveUI Namespace