WPF rendering issue on any machine
Andrey Nasonov
21
Reputation points
Please follow this steps to catch problem on your machine. Please, help me resolve it.
- Create empty WPF project.
- Use property CacheMode="BitmapCache" in MainWindow's Grid;
- Show MainWindow on start application, then hide it. Show new any Window, for example new MainWindow. You can use a code below.
- Press Ctrl + Alt + Del or Win + L and try to interact with showed window (resize, minimize) it should be broken now. var window1 = new MainWindow();
window1.Show();
await Task.Delay(1000);
window1.Hide();
var window2 = new MainWindow();
window2.Show();
Tested on Windows 10, different video cards and PCs. On each PC the issue exist.
I've project where you can try to get the same issue: https://github.com/Erapchu/GhostWindows
Developer technologies Windows Presentation Foundation
2,854 questions
Developer technologies XAML
859 questions
Sign in to answer