I'm using the Metro Dark theme in my application.
I want the general dialogs and modal windows in the app to fit the theme.
For that I use the WindowChrome, like I do for the main window of the app, which works fine.
The problem is that from time to time, but very consistently (at least once or twice every time the app is used), the window is completely transparent (only very very thin border, almost completely invisible).
If I drag/shake the window it usually not helping, only if I switch to some other opened application it actually draw.
Note that the other application does not need to be on top of my application, just switching to it (i.e. just alt+tab) is enough.
What should I do?
[Modified 4 years ago]