While working on a desktop application, I found that the WPF WebBrowserControl by default renders the pages in IE7 mode. Even when we are running the application on a latest Windows machine (e.g. Windows 8 or Windows Server 2012), it still uses IE7.
The problem is, most of the latest HTML5 & CSS3 features won’t work in IE7 and it also has other rendering issues. Likely we can changes this from windows registry. However, as we will see shortly it is application specific and have to add an entry for each application.
Based on the OS version, we need to add a value in registry in the following path:
- 32bit Windows:
- 64bit Windows:
The following screen shot shows how we can configure the the web browser control in “WebScanner.exe” to use IE10 instead of the default IE7.
We can also specify other IE versions. A full list of available IE versions and the values for the registry key is available here at msdn.