Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DialogHost nested z-order changes when application loses focus #3284

Open
JeffBarnard opened this issue Jul 31, 2023 · 3 comments
Open

DialogHost nested z-order changes when application loses focus #3284

JeffBarnard opened this issue Jul 31, 2023 · 3 comments
Labels

Comments

@JeffBarnard
Copy link
Contributor

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 JeffBarnard added bug evaluation required Items is pending review or evaluation by the team labels Jul 31, 2023
@MichelMichels
Copy link
Member

Please provide a repository with the stated behavior.

@MichelMichels MichelMichels added Waiting on feedback Additional information is needed. Stale items with this label may be closed. and removed evaluation required Items is pending review or evaluation by the team labels Aug 30, 2023
@github-actions
Copy link
Contributor

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 github-actions bot added the Stale Issues and PRs that have not had activity for a while are marked with this label. label Sep 30, 2023
@JeffBarnard
Copy link
Contributor Author

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.

@github-actions github-actions bot removed the Stale Issues and PRs that have not had activity for a while are marked with this label. label Oct 3, 2023
@nicolaihenriksen nicolaihenriksen removed the Waiting on feedback Additional information is needed. Stale items with this label may be closed. label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants