AvaloniaObjectReactiveExtensionsGetBindingSubjectT(AvaloniaObject, AvaloniaPropertyT, 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<T>> GetBindingSubject<T>(
	this AvaloniaObject o,
	AvaloniaProperty<T> property,
	BindingPriority priority = BindingPriority.LocalValue
)

Parameters

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

Type Parameters

T
The property type.

Return Value

ISubjectBindingValueT
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