Set WPF webbrowser control to use IE10 mode

Jibin Mathew picture Jibin Mathew · May 21, 2014 · Viewed 22.1k times · Source

How can i set the WPF webbrowser controls to render pages in iE10 mode or the higher version installed on machine . By default if i create a .net 4 or .net 4.5 application on any machine of OS > windows 7 , it renders the html pages in IE7 mode only. (Please correct if i am wrong) How to enable the application to render the html pages in IE10 mode if IE10 installed on target machine ? Any helps

Answer

xr280xr picture xr280xr · Jan 18, 2017

If you don't want to modify the registry and you control the webpage, you can use the

<meta http-equiv="X-UA-Compatible" content="IE=10">

tag in the document's head. I believe it has to be first or immediately following <title> in order to work.