Summary
Gets a subject for a
AvaloniaProperty
.
- Namespace
- Avalonia
- Containing Type
- Avalonia
Object Extensions
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 |
The property. |
priority | BindingPriority | The priority with which binding values are written to the object. |
Return Value
Type | Description |
---|---|
ISubject |
An ISubject<T> which can be used for two-way binding to/from the
property.
|