MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

Modeless window minimise / topmost bug

Open rsx2048 opened this issue 3 years ago • 1 comments

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

MahAppsWindowIssue.zip

rsx2048 avatar Jun 10 '22 17:06 rsx2048

This will be fixed with ControlzEx v6 (coming with MahApps v4) /cc @batzen

punker76 avatar Jun 29 '22 08:06 punker76