We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not sure if this is a bug in mahapps or a problem with the implementation.
I use the dragablz:TabablzControl and if i drag out a tab, i can't open a dialog in this window.
dragablz:TabablzControl
I tried to update the DialogCoordinator when the tab was dragged out, but it doesn't work: https://github.com/BornToBeRoot/NETworkManager/pull/2517/files
Dialog should open.
Nothing. No Dialog, No log, no crash...
Edit: I now get sometimes this error: System.InvalidOperationException: "Context is not inside a MetroWindow."
System.InvalidOperationException: "Context is not inside a MetroWindow."
MahApps.Metro version: v2.4.10 Windows build number: Win10 22H2 22621.2134 Target Framework: .NET 6
The text was updated successfully, but these errors were encountered:
I maybe found a workaround.
Instead of doing it like this...
return _dialogCoordinator.ShowMetroDialogAsync(this, customDialog);
I can find the parent window (that is currently active) and use it as context.
var window = Application.Current.Windows.OfType<Window>().FirstOrDefault(x => x.IsActive); return _dialogCoordinator.ShowMetroDialogAsync(window, customDialog);
Inside the parent Window the dialog needs to be registered. Not just in the View&ViewModel
xmlns:dialogs="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro" dialogs:DialogParticipation.Register="{Binding}"
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I'm not sure if this is a bug in mahapps or a problem with the implementation.
I use the
dragablz:TabablzControl
and if i drag out a tab, i can't open a dialog in this window.Steps to reproduce
I tried to update the DialogCoordinator when the tab was dragged out, but it doesn't work: https://github.com/BornToBeRoot/NETworkManager/pull/2517/files
Expected behavior
Dialog should open.
Actual behavior
Nothing. No Dialog, No log, no crash...
Edit: I now get sometimes this error:
System.InvalidOperationException: "Context is not inside a MetroWindow."
Environment
The text was updated successfully, but these errors were encountered: