MahApps.Metro
MahApps.Metro copied to clipboard
Modeless window minimise / topmost bug
Describe the bug
A metro window that opens another metro window modelessly using .Show() stays top most when the modeless window is minimised.
Steps to reproduce
See attached project. Run without attaching to debugger (when debugged is attached, the bug does not occur) Open popup window, minimise popup window. Bring other process window, e.g. win explorer to foreground. debug project main window remains in front.
Expected behavior
Main window should not remain topmost foreground window just because a modeless popup is minimised.
Environment
MahApps.Metro version: v2.4.9
Windows build number: Win10 21h2 [Version 10.0.19044.1706]
Visual Studio: 2022 16.2.2
Target Framework: .Net 6.0 (also .net core 3.1)
Example project
This will be fixed with ControlzEx v6 (coming with MahApps v4) /cc @batzen