Zameer
Zameer

Reputation: 115

Is Web Browser control in WPF perfect enough to support modern browser features?

We did some experiments loading sample HTML pages in to the latest version of WPF Web browser control which comes with VS 2017 IDE. Seems perfect in most of the cases except when loading following URLs which throws error messages, which is not the case in modern web browsers like IE, Chrome.

E.g. 1. Error message for W3Schools: enter image description here

  1. Error message for HTML5Rocks : enter image description here

Please let us know whether WPF browser control is perfect enough to render/support modern web technology features in our desktop application projects?

-Thank you

Upvotes: 5

Views: 14973

Answers (2)

Summer-Time
Summer-Time

Reputation: 1874

The Microsoft.Toolkit.Win32 Control is replaced with a new Webview2 control https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf

Here is a good Introduction Video

Upvotes: 2

mm8
mm8

Reputation: 169170

I believe the "modern" browser experience on Windows in Microsoft Edge. You could use the WebView control to use it in your WPF application as explained in this blog post. This assumes you are targeting the April 2018 release of Windows 10 or later.

If your users are still in Windows 7, you may want to look for a third-party browser control such as for example CefSharp.

Upvotes: 7

Related Questions