Back to Devexpress

BarPopupBase.ClosePopup() Method

wpf-devexpress-dot-xpf-dot-bars-dot-barpopupbase.md

latest2.1 KB
Original Source

BarPopupBase.ClosePopup() Method

Closes the currently opened BarPopupBase object.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public virtual void ClosePopup()
vb
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

csharp
void OptionsButton_Click(object sender, RoutedEventArgs e) {
    (RibbonControl.ApplicationMenu as ApplicationMenu).ClosePopup();
}

wpf-create-a-ribboncontrol/VB/RibbonControl_Ex/MainWindow.xaml.vb#L131

vb
Private Sub OptionsButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Call TryCast(RibbonControl.ApplicationMenu, ApplicationMenu).ClosePopup()
End Sub

See Also

BarPopupBase Class

BarPopupBase Members

DevExpress.Xpf.Bars Namespace