AvaloniaObjectExtensions.

GetSubject<T>(IAvaloniaObject, AvaloniaProperty<T>, BindingPriority) Method

Summary

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

Syntax

public static ISubject<T> GetSubject<T>(this IAvaloniaObject o, AvaloniaProperty<T> property, BindingPriority priority = LocalValue)

Type Parameters

Name Description
T The property type.

Parameters

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

Return Value

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