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)
- C#
- VB
- F#
public static IDisposable TrackItemPropertyChanged<T>(
this IAvaloniaReadOnlyList<T> collection,
Action<Tuple<Object?, PropertyChangedEventArgs>> callback
)
<ExtensionAttribute>
Public Shared Function TrackItemPropertyChanged(Of T) (
collection As IAvaloniaReadOnlyList(Of T),
callback As Action(Of Tuple(Of Object, PropertyChangedEventArgs))
) As IDisposable
[<ExtensionAttribute>]
static member TrackItemPropertyChanged :
collection : IAvaloniaReadOnlyList<'T> *
callback : Action<Tuple<Object, PropertyChangedEventArgs>> -> IDisposable
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).