AvaloniaObjectExtensions.

GetSubject(IAvaloniaObject, AvaloniaProperty, BindingPriority) Method

Summary

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

Syntax

public static ISubject<object> GetSubject(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<object> An ISubject<Object> which can be used for two-way binding to/from the property.