Removes a previously added listener from the provided source.
Assembly: WindowsBase (in WindowsBase.dll)
Call this method within your manager class RemoveListener methods on WeakEventManager implementations. RemoveListener is the suggested name for the static method you define on your manager class to enable other classes to remove a listener for your weak event pattern. RemoveListener should take two parameters: the source where the listener is removed, and the listener class. For your RemoveListener implementation, call the method on the current manager and pass the same two parameters.
removes listeners from a single internal WeakEventManager::ListenerList per source. If your manager implementation maintains more than one list of listeners for each event-source combination, do not use . Instead, your implementation should create its own WeakEventManager::ListenerList instances, RemoveListener should remove listeners from the appropriate list, and events should be delivered to the appropriate listener list by calling the DeliverEventToList method instead of the DeliverEvent method.