Skip to main content

GetWeakCollectionChangedObservable Method

Gets a weak observable for the CollectionChanged event.

Definition​

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

public static IObservable<NotifyCollectionChangedEventArgs> GetWeakCollectionChangedObservable(
this INotifyCollectionChanged collection
)

Parameters​

  INotifyCollectionChanged
The collection.

Return Value​

IObservable(NotifyCollectionChangedEventArgs)
An observable.

Usage Note​

In Visual Basic and C#, you can call this method as an instance method on any object of type INotifyCollectionChanged. 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​

NotifyCollectionChangedExtensions Class
Avalonia.Collections Namespace