Interface IWeakEventListener
Provides event listening support for classes that expect to receive events through the WeakEvent pattern and a WeakEventManager.
Namespace: System.Windows
Assembly: Telerik.Windows.Controls.dll
Syntax
public interface IWeakEventListener
Methods
ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.
Declaration
bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters
System.Type
managerType
The type of the WeakEventManager calling this method. |
System.Object
sender
Object that originated the event. |
System.EventArgs
e
Event data. |
Returns
System.Boolean
true if the listener handled the event. It is considered an error by the WeakEventManager handling in WPF to register a listener for an event that the listener does not handle. Regardless, the method should return false if it receives an event that it does not recognize or handle. |