Window content disappears
See original GitHub issueI am using your Fluent WPF example as a base. Main windows is fine, but sometime as additonal window created would be completely blank, and one of the users sent this crash report
System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
It just has the acrylic effect
and window can still be moved around and closed. When this happens each windows reopening would produce a window like this until program is restarted. I have not found a reliable way to reproduce this.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Why do my windows disappear when I click to move them?
Hi Sandy I am Dave, I will help you with this. Open the Settings App, then go to System - About, then click...
Read more >Stop Windows From Making Content Disappear
Windows assumes you want to see that task's full window more clearly. So it blanks out everything else on your computer to show...
Read more >Disappearing content when adjusting browser window size
I'm creating a responsive website. When I adjust the browser screen to a size smaller then 480 px wide, the content (header and...
Read more >Windows 11 - Disappearing Menu Text : r/windowsinsiders
Windows 11 - Disappearing Menu Text. Does anyone else have in issue with text disappearing from menus - for example right click >...
Read more >Content sometimes disappears when moving back to ...
Can't reproduce consistently, but sometimes, when I navigate back to Windows Terminal from another window, the content of the Terminal window ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems to be a problem with FluentWPF, I had this exact same issue while using FluentWPF (only FluentWPF, no other UI libraries) in one of projects. The window would be blank when reopened after a while.
It’s too annoying for users. Restarting the app may temporarily fix this issue but it may happen later
So it makes sense to open an issue regarding this on the FluentWPF repo.
For a test, I’ve replaced Style for TabControl/TabItem with a first one I’ve googled https://stackoverflow.com/a/31365307/967565 and the issue is fixed in one window; 2nd one still uses Style from ModernWPF and still results in whole window blank after Lock/Unlock, so the issue is definitely is somewhere in TabControl/TabItem Style of ModernWPF