wpf-devexpress-dot-xpf-dot-bars-dot-barpopupbase.md
Closes the currently opened BarPopupBase object.
Namespace : DevExpress.Xpf.Bars
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public virtual void ClosePopup()
Public Overridable Sub ClosePopup
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClosePopup() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml.cs#L132
void OptionsButton_Click(object sender, RoutedEventArgs e) {
(RibbonControl.ApplicationMenu as ApplicationMenu).ClosePopup();
}
wpf-create-a-ribboncontrol/VB/RibbonControl_Ex/MainWindow.xaml.vb#L131
Private Sub OptionsButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
Call TryCast(RibbonControl.ApplicationMenu, ApplicationMenu).ClosePopup()
End Sub
See Also