AvaloniaObjectExtensions.

GetPropertyChangedObservable(IAvaloniaObject, AvaloniaProperty) Method

Summary

Gets an observable that listens for property changed events for an AvaloniaProperty.
Namespace
Avalonia
Containing Type
AvaloniaObjectExtensions

Syntax

public static IObservable<AvaloniaPropertyChangedEventArgs> GetPropertyChangedObservable(this IAvaloniaObject o, AvaloniaProperty property)

Parameters

Name Type Description
o IAvaloniaObject The object.
property AvaloniaProperty The property.

Return Value

Type Description
IObservable<AvaloniaPropertyChangedEventArgs> An observable which when subscribed pushes the property changed event args each time a PropertyChanged event is raised for the specified property.