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

IsAnyDialogOpen (MahApps) not working for child windows #73

Open
punker76 opened this issue Apr 21, 2018 · 1 comment
Open

IsAnyDialogOpen (MahApps) not working for child windows #73

punker76 opened this issue Apr 21, 2018 · 1 comment

Comments

@punker76
Copy link
Owner

Imported from MahApps/MahApps.Metro#3223

IsAnyDialogOpen property is set to false although a child window is shown using the ShowChildWindowAsync by the MahApps.Metro.SimpleChildWindow extension

What steps will reproduce this issue?

var result = await this.ShowChildWindowAsync<bool>(new UserControl { IsModal = false });

// somewhere else in code

if (this.IsAnyDialogOpen == false)
 MessageBox.Show("you shouldn' see this);

Expected outcome

Property should return TRUE if there is a child window shown. Otherwise there should be another property for it.

Environment

  • MahApps.Metro 1.6.1
  • MahApps.Metro.SimpleChildWindow 1.5
  • Windows OS Win10
  • Visual Studio 2017
  • .NET Framework 4.7
@thbiela
Copy link

thbiela commented Sep 2, 2018

Is there any possibility to fix this issue? How do I know if any dialog is open? Background Information: I watch ESC-Keypresses to close my window and would like to ignore this if any ChildWindow is open. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants