Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF WebBrowser Control: What browser does it use?

Does the WPF WebBrowser control always use Internet Explorer or does it use the default web browser on the system ?

Regards, MadSeb

like image 531
MadSeb Avatar asked Sep 29 '10 14:09

MadSeb


People also ask

What browser does WPF use?

WPF Browser applications (or XAML Browser applications, or XBAP) are a specific kind of application that are compiled into . xbap extensions and can be run in Internet Explorer.

Can WPF be targeted to Web browser True or false?

WPF only runs on windows. You can make a type of wpf application called xbap which runs in a browser.

What is WebBrowser control?

The WebBrowser control provides a managed wrapper for the WebBrowser ActiveX control. The managed wrapper lets you display Web pages in your Windows Forms client applications.

Is WPF used for Web applications?

Windows Presentation Foundation is a UI framework that creates desktop client applications. The WPF development platform supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding, documents, and security. WPF is part of .


2 Answers

One issue the Web Browser Control has that it’s perpetually stuck in IE 7 rendering mode by default. Even though IE 8 and now 9 have significantly upgraded the IE rendering engine to be more CSS and HTML compliant by default the Web Browser control will have none of it. IE 9 in particular – with its much improved CSS support and basic HTML 5 support is a big improvement and even though the IE control uses some of IE’s internal rendering technology it’s still stuck in the old IE 7 rendering by default.

This applies whether you’re using the Web Browser control in a WPF application, a WinForms app, a FoxPro or VB classic application using the ActiveX control. Behind the scenes all these UI platforms use the COM interfaces and so you’re stuck by those same rules.

See this: Web Browser Control – Specifying the IE Version

http://www.west-wind.com/weblog/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

like image 52
Tony Avatar answered Oct 01 '22 10:10

Tony


Internet Explorer, though there are "hacks" posted on the internet which allow you to use a workaround in order to launch any browser you like.

This thread seems to explain one of the possible solutions.

like image 32
bastijn Avatar answered Oct 02 '22 10:10

bastijn