MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

DialogHost nested z-order changes when application loses focus

Open JeffBarnard opened this issue 2 years ago • 3 comments

Bug explanation

I am nesting dialoghosts so that I can stack sub dialogs. It works great for our application.

<materialDesign:DialogHost Identifier="SubDialog" CloseOnClickAway="True">
    <materialDesign:DialogHost Identifier="RootDialog" DialogTheme="Inherit" CloseOnClickAway="True">

The issue I've found is when the application (MainWindow) loses focus to another Windows application, the z-order of the dialogs is changed and the dialog that was in front is sent to the back. This often hides the sub dialog and if CloseOnClickAway is false, then the user can get stuck.

Version

4.9.0

JeffBarnard avatar Jul 31 '23 20:07 JeffBarnard

Please provide a repository with the stated behavior.

MichelMichels avatar Aug 30 '23 09:08 MichelMichels

This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.

github-actions[bot] avatar Sep 30 '23 01:09 github-actions[bot]

Please provide a repository with the stated behavior.

https://github.com/JeffBarnard/MaterialDesignInXaml.3284 Here you go. To view the issue, simply open the dialogs and ALT+TAB or click another application to cause the app to lose focus and you can see the dialog order change.

JeffBarnard avatar Oct 02 '23 21:10 JeffBarnard