Skip to main content

TrackItemPropertyChanged<T> Method

Listens for property changed events from all items in a collection.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters

  IAvaloniaReadOnlyList(T)
The collection.
  Action(Tuple(Object, PropertyChangedEventArgs))
A callback to call for each property changed event.

Type Parameters

The type of the collection items.

Return Value

IDisposable
A disposable used to terminate the subscription.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAvaloniaReadOnlyList(T). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

AvaloniaListExtensions Class
Avalonia.Collections Namespace