Summary
Subscribes to the CollectionChanged event using a weak subscription.
- Namespace
- Avalonia
.Collections - Containing Type
- Notify
Collection Changed Extensions
Syntax
public static IDisposable WeakSubscribe(this INotifyCollectionChanged collection, NotifyCollectionChangedEventHandler handler)
Parameters
Name | Type | Description |
---|---|---|
collection | I |
The collection. |
handler | Notify |
An action called when the collection event is raised. |
Return Value
Type | Description |
---|---|
IDisposable | A disposable used to terminate the subscription. |