AvaloniaObjectReactiveExtensionsGetBindingSubject(AvaloniaObject, AvaloniaProperty, BindingPriority) Method

Gets a subject for a AvaloniaProperty.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll) Version: 11.3.999
public static ISubject<BindingValue<Object>> GetBindingSubject(
	this AvaloniaObject o,
	AvaloniaProperty property,
	BindingPriority priority = BindingPriority.LocalValue
)

Parameters

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

Return Value

ISubjectBindingValueObject
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