We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5aaa6 commit 7ff6afbCopy full SHA for 7ff6afb
MaterialDesignThemes.Wpf/PopupEx.cs
@@ -92,7 +92,7 @@ private void PopupEx_Loaded(object? sender, RoutedEventArgs e)
92
}
93
94
private void PopupEx_Opened(object? sender, EventArgs e)
95
- => SetTopmostState(_hostWindow?.IsActive ?? true);
+ => SetTopmostState(_hostWindow is null || _hostWindow is { IsActive: true } || _hostWindow is { Topmost: true });
96
97
private void HostWindow_Activated(object? sender, EventArgs e)
98
=> SetTopmostState(true);
0 commit comments