Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set WPF webbrowser control to use IE10 mode

How can I set the WPF webbrowser controls to render pages in iE10 mode or the higher version installed on a 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 me if I am wrong). How to enable the application to render the html pages in IE10 mode if IE10 is installed on the target machine?

like image 255
Sebastian Avatar asked May 21 '14 07:05

Sebastian


1 Answers

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.

like image 23
xr280xr Avatar answered Oct 21 '22 20:10

xr280xr