UI.WPF.Modern
UI.WPF.Modern copied to clipboard
Second Window Freezing Issue
Describe the bug
If I open second window and hide the main window, the second window will freeze if I lock my laptop and login in.
Reproduction
- Bind this function to
MainWindowinGalleryproject.
private void MainWindow_OnClosing(object? sender, CancelEventArgs e)
{
Hide();
e.Cancel = true;
}
- Open Gallery main window.
- Open second window from
Dialog and Flyouts->ContentDialog->Open a new window. - Close Gallery main window. (It is hidden)
- Sleep or lock system.
- Logon in system.
- Click
Show content dialog in this windowbutton. (No context dialog created. Try to drag and move the window which can possibly cause system black screen for a while. Then the dialog is created.)
Suggested Solution
It is related to CacheMode but I am not sure how much we need to change it.
Another UI framework MaterialDesign fixes this issue: https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/issues/559
Library Version
0.10.0
Operating System
Windows 11
Framework
.NET Framework
Framework Version
6.0.0
Source of Package
NuGet.org (Package)
Additional Notes
Look forward to the fix and I am planing to move to this UI framework for my open source app!
Validations
- [x] Check that there isn't already an issue that reports the same or similar problem.
- [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
- [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
- [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
- [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
- [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)