AvaloniaObjectExtensions Class

Summary

Provides extension methods for AvaloniaObject and related classes.
Namespace
Avalonia
Base Types
  • object
graph TD Base0["object"]-->Type Type["AvaloniaObjectExtensions"] class Type type-node

Syntax

public static class AvaloniaObjectExtensions

Methods

Name Value Summary
AddClassHandler<TTarget>(IObservable<AvaloniaPropertyChangedEventArgs>, Action<TTarget, AvaloniaPropertyChangedEventArgs>) IDisposable
Subscribes to a property changed notifications for changes that originate from a TTarget.
static
AddClassHandler<TTarget>(IObservable<AvaloniaPropertyChangedEventArgs>, Func<TTarget, Action<AvaloniaPropertyChangedEventArgs>>) IDisposable
Subscribes to a property changed notifications for changes that originate from a TTarget.
static
Bind(IAvaloniaObject, AvaloniaProperty, IBinding, object) IDisposable
Binds a property on an IAvaloniaObject to an IBinding.
static
GetObservable(IAvaloniaObject, AvaloniaProperty) IObservable<object>
Gets an observable for a AvaloniaProperty.
static
GetObservable<T>(IAvaloniaObject, AvaloniaProperty<T>) IObservable<T>
Gets an observable for a AvaloniaProperty.
static
GetPropertyChangedObservable(IAvaloniaObject, AvaloniaProperty) IObservable<AvaloniaPropertyChangedEventArgs>
Gets an observable that listens for property changed events for an AvaloniaProperty.
static
GetSubject(IAvaloniaObject, AvaloniaProperty, BindingPriority) ISubject<object>
Gets a subject for a AvaloniaProperty.
static
GetSubject<T>(IAvaloniaObject, AvaloniaProperty<T>, BindingPriority) ISubject<T>
Gets a subject for a AvaloniaProperty.
static
ToBinding<T>(IObservable<T>) IBinding
Converts an IObservable<T> to an IBinding.
static