Class CollectionChangedEventManager
Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CollectionChanged event.
Inheritance
Inherited Members
Namespace: System.Collections.Specialized
Assembly: Telerik.Windows.Controls.dll
Syntax
public class CollectionChangedEventManager : WeakEventManager<INotifyCollectionChanged>
Methods
AddListener(INotifyCollectionChanged, IWeakEventListener)
Adds the specified listener to the CollectionChanged event of the specified source.
Declaration
public static void AddListener(INotifyCollectionChanged source, IWeakEventListener listener)
Parameters
System.Collections.Specialized.INotifyCollectionChanged
source
The object with the event. |
IWeakEventListener
listener
The object to add as a listener. |
RemoveListener(INotifyCollectionChanged, IWeakEventListener)
Removes the specified listener from the CollectionChanged event of the specified source.
Declaration
public static void RemoveListener(INotifyCollectionChanged source, IWeakEventListener listener)
Parameters
System.Collections.Specialized.INotifyCollectionChanged
source
The object with the event. |
IWeakEventListener
listener
The listener to remove. |
StartListening(Object)
Begins listening for the CollectionChanged event on the specified source.
Declaration
protected override void StartListening(object source)
Parameters
System.Object
source
The object with the event. |
Overrides
StopListening(Object)
Stops listening for the CollectionChanged event on the specified source.
Declaration
protected override void StopListening(object source)
Parameters
System.Object
source
The object with the event. |