UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

Second Window Freezing Issue

Open Jack251970 opened this issue 8 months ago • 0 comments

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

  1. Bind this function to MainWindow in Gallery project.
private void MainWindow_OnClosing(object? sender, CancelEventArgs e)
{
    Hide();
    e.Cancel = true;
}
  1. Open Gallery main window.
  2. Open second window from Dialog and Flyouts -> ContentDialog -> Open a new window.
  3. Close Gallery main window. (It is hidden)
  4. Sleep or lock system.
  5. Logon in system.
  6. Click Show content dialog in this window button. (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.)

Jack251970 avatar Apr 07 '25 15:04 Jack251970