RibbonMenuButton.OnDismissPopup Method (RibbonDismissPopupEventArgs)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides class handling for the DismissPopup attached event.

Namespace:   System.Windows.Controls.Ribbon
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

protected virtual void OnDismissPopup(
	RibbonDismissPopupEventArgs e

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
Available since 4.5
Return to top