I sell a WPF application, on one customer machine (out of several hundreds) the entire application window is black, anyone know what's going on?
The machine is running Windows XP with .net 3.5SP1, the graphic adapter is GeForce 6200 with two monitors (disabling one monitor doesn't solve the problem).
Setting "Compatibility settings" to "256 colors" solves the problem (but it's not a viable solution, I need more colors for the app to look good).
The application is yaTimer ( http://www.nbdtech.com/yaTimer/ ), it has custom window chrome based on the techniques described in this post http://blogs.msdn.com/wpfsdk/archive/2008/09/08/custom-window-chrome-in-wpf.aspx in the "Office 2007 without Aero" section.
If anyone can give me a clue as to what's going on I'll be very thankful.
Thanks.
We (www.novamind.com) had multiple customers in the past having similar issues where the application wouldn't draw correctly or not at all. Reasons were:
This can also help:
Hope this helps. Good luck.
I have this issue only with the GlassFrame enabled in the window chome.
Try setting GlassFraneThickness to 0 and your window will render again. You will lose the Glass frame though, but better than a black app.
<shell:WindowChrome.WindowChrome>
<shell:WindowChrome CaptionHeight="32" GlassFrameThickness="0" ResizeBorderThickness="5" CornerRadius="0" />
</shell:WindowChrome.WindowChrome>
Maybe you can also try to force the window to repaint. Im my case the window content showed when i moved the window to the other monitor or out of the viewport and in again, so a repaint seems to do the job.
In the Microsoft.Windows.Shell Sourcecode there is a function _FixupWindows7Issues() (in the WindowChromeWorker class) which should fix the problem according to it's comment, but obviously doesn't...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With