Class
CollectionChangedEventManager

Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CollectionChanged event.

Definition

Methods

AddListener(INotifyCollectionChanged, IWeakEventListener)

Adds the specified listener to the CollectionChanged event of the specified source.

Declaration

cs-api-definition
public static void AddListener(INotifyCollectionChanged source, IWeakEventListener listener)

Parameters

source

INotifyCollectionChanged

The object with the event.

listener

IWeakEventListener

The object to add as a listener.

RemoveListener(INotifyCollectionChanged, IWeakEventListener)

Removes the specified listener from the CollectionChanged event of the specified source.

Declaration

cs-api-definition
public static void RemoveListener(INotifyCollectionChanged source, IWeakEventListener listener)

Parameters

source

INotifyCollectionChanged

The object with the event.

listener

IWeakEventListener

The listener to remove.

StartListening(object)

Begins listening for the CollectionChanged event on the specified source.

Declaration

cs-api-definition
protected override void StartListening(object source)

Parameters

source

object

The object with the event.

Overrides WeakEventManager<INotifyCollectionChanged>.StartListening(object)

StopListening(object)

Stops listening for the CollectionChanged event on the specified source.

Declaration

cs-api-definition
protected override void StopListening(object source)

Parameters

source

object

The object with the event.

Overrides WeakEventManager<INotifyCollectionChanged>.StopListening(object)