RibbonMenuButton.OnDismissPopup Method
Provides class handling for the DismissPopup attached event.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overridable Sub OnDismissPopup ( _
e As RibbonDismissPopupEventArgs _
)
protected virtual void OnDismissPopup(
RibbonDismissPopupEventArgs e
)
protected:
virtual void OnDismissPopup(
RibbonDismissPopupEventArgs^ e
)
abstract OnDismissPopup :
e:RibbonDismissPopupEventArgs -> unit
override OnDismissPopup :
e:RibbonDismissPopupEventArgs -> unit
protected function OnDismissPopup(
e : RibbonDismissPopupEventArgs
)
Parameters
- e
Type: Microsoft.Windows.Controls.Ribbon.RibbonDismissPopupEventArgs
The event data.
Remarks
This method closes the menu drop-down and then marks the DismissPopup attached event as handled so that the parent drop-down is not closed.
.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.