AvaloniaListExtensions.

TrackItemPropertyChanged<T>(IAvaloniaReadOnlyList<T>, Action<Tuple<object, PropertyChangedEventArgs>>) Method

Summary

Listens for property changed events from all items in a collection.
Namespace
Avalonia.Collections
Containing Type
AvaloniaListExtensions

Syntax

public static IDisposable TrackItemPropertyChanged<T>(this IAvaloniaReadOnlyList<T> collection, Action<Tuple<object, PropertyChangedEventArgs>> callback)

Type Parameters

Name Description
T The type of the collection items.

Parameters

Name Type Description
collection IAvaloniaReadOnlyList<T> The collection.
callback Action<Tuple<object, PropertyChangedEventArgs>> A callback to call for each property changed event.

Return Value

Type Description
IDisposable A disposable used to terminate the subscription.