RibbonGalleryCategory.IWeakEventListener.ReceiveWeakEvent Method
Receives events from the centralized event manager.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Private Function ReceiveWeakEvent ( _
managerType As Type, _
sender As Object, _
e As EventArgs _
) As Boolean Implements IWeakEventListener.ReceiveWeakEvent
bool IWeakEventListener.ReceiveWeakEvent(
Type managerType,
Object sender,
EventArgs e
)
private:
virtual bool ReceiveWeakEvent(
Type^ managerType,
Object^ sender,
EventArgs^ e
) sealed = IWeakEventListener::ReceiveWeakEvent
private abstract ReceiveWeakEvent :
managerType:Type *
sender:Object *
e:EventArgs -> bool
private override ReceiveWeakEvent :
managerType:Type *
sender:Object *
e:EventArgs -> bool
JScript does not support explicit interface implementations.
Parameters
- managerType
Type: System.Type
The type of the WeakEventManager calling this method.
- sender
Type: System.Object
The object that originated the event.
- e
Type: System.EventArgs
The event data.
Return Value
Type: System.Boolean
true if the listener handled the event. false if it receives an event that it does not recognize or handle.
Implements
IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs)
Remarks
This member is an explicit interface member implementation. It can be used only when the RibbonGalleryCategory instance is cast to an IWeakEventListener interface.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Controls.Ribbon Namespace