Blank WPF child windows on Windows 10

戏子无情 提交于 2019-11-30 22:00:35

From my observation, this is an Intel GPU driver issue on Windows 10 only (windows 8 were fine). We have a WPF desktop application with thousands of users that runs well in Windows 7, 8, 8.1 but when installed in Windows 10, some of the Windows 10 are working well but some will appear exactly what this thread explains.

To resolve this issue, the simplest method is to update the Intel GPU driver of the problematic machine. If you are desperately finding it doesn't help even you have run the latest Windows updates and the problem still persists, try to update the driver manually by:

  1. In "Device Manager", right click the Graphic card and choose "update driver".
  2. In this way, windows 10 will try to look for the latest driver that sometimes not available in Windows Updates.
  3. If the device manager tell that your driver is up to date already, the last resort is to look for the driver here: https://downloadcenter.intel.com/

For some machine, e.g. Microsoft Surface 3 (not surface pro) that running kinda new CPU/GPU (Atom X7), update driver seems not possible yet and I am still finding resolution for this kind of machines.

In other cases, most of my Intel HD GPU solved this problem after updating to driver version 10.18.15.4278

Note 1: I have not seen this problem appear in other GPU, so far, say Nvidia or ATI. Note 2: In general, i would say, other than the latest Intel Atom X5/X7, most of the other Intel HD Graphic should be able to perform driver update and get this problem solved.

I have now updated my video drivers and this appears to have solved the issue.

Windows appear correctly now with no need for the additional code listed below. :)

I face the same issue since upgrading from 8.1 to Windows 10. I altered the window load method:

        WindowState = WindowState.Maximized;         WindowState = WindowState.Normal; 

This seems to "redraw" the window elements so that they display. I've tested this several times and each time the window appears correctly after instantly restoring itself from maximized. I didn't set window state in xaml.

(Another "fix" was to set dimension bindings such as width by specific name to all the one object of that type).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!