RibbonControlService.AddDismissPopupHandler Method
Adds a handler for the DismissPopup attached event.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Shared Sub AddDismissPopupHandler ( _
element As DependencyObject, _
handler As RibbonDismissPopupEventHandler _
)
public static void AddDismissPopupHandler(
DependencyObject element,
RibbonDismissPopupEventHandler handler
)
public:
static void AddDismissPopupHandler(
DependencyObject^ element,
RibbonDismissPopupEventHandler^ handler
)
static member AddDismissPopupHandler :
element:DependencyObject *
handler:RibbonDismissPopupEventHandler -> unit
public static function AddDismissPopupHandler(
element : DependencyObject,
handler : RibbonDismissPopupEventHandler
)
Parameters
- element
Type: System.Windows.DependencyObject
The object to which the attached event is added.
- handler
Type: Microsoft.Windows.Controls.Ribbon.RibbonDismissPopupEventHandler
The event handler.
.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.