AvaloniaObjectExtensions.

GetBindingSubject(IAvaloniaObject, AvaloniaProperty, BindingPriority) Method

Summary

Gets a subject for a AvaloniaProperty.
Namespace
Avalonia
Containing Type
AvaloniaObjectExtensions

Syntax

public static ISubject<BindingValue<object>> GetBindingSubject(this IAvaloniaObject o, AvaloniaProperty property, BindingPriority priority = LocalValue)

Parameters

Name Type Description
o IAvaloniaObject The object.
property AvaloniaProperty The property.
priority BindingPriority The priority with which binding values are written to the object.

Return Value

Type Description
ISubject<BindingValue<object>> An ISubject<Object> which can be used for two-way binding to/from the property.