ChromiumWebBrowser vs WebView WPF

1,062 views
Skip to first unread message

Clayton Johnson

unread,
Aug 24, 2014, 1:30:38 AM8/24/14
to cefs...@googlegroups.com
Hello,

After getting CefSharp 3 working in my own WPF application I started playing around with some webpages I had made up before which heavily utilise Javascript.
The WebView control is what I'm using in my application and while it did run the webpage I was testing with worked there was some performance issues which I wasn't happy with, I compared it to the CefSharp.MinimalExample and it had the same performance issue. I then opened the webpage in the CefSharp.Wpf.Example and the performance issues weren't there.

Upon investigation (and without an in depth knowledge of how everything works together) I found that while the WebView control is used in the CefSharp.MinimalExample, the ChromiumWebBrowser control is used the in the CefSharp.Wpf.Example.

So my question is simply, what is the difference between the two controls and why would the ChromiumWebBrowser control perform significantly better?

Regards,
Clayton

Jørn Hansen

unread,
Aug 24, 2014, 7:35:47 AM8/24/14
to cefs...@googlegroups.com


On Sunday, August 24, 2014 7:30:38 AM UTC+2, Clayton Johnson wrote:
Hello,

After getting CefSharp 3 working in my own WPF application I started playing around with some webpages I had made up before which heavily utilise Javascript.
The WebView control is what I'm using in my application and while it did run the webpage I was testing with worked there was some performance issues which I wasn't happy with, I compared it to the CefSharp.MinimalExample and it had the same performance issue. I then opened the webpage in the CefSharp.Wpf.Example and the performance issues weren't there.

That's simply a sign that a lot of work has happened on the `master` branch since the release of the 31.0.0-pre1 CefSharp.* NuGet binaries which CefSharp.MinimalExample use.

The CefSharp.Wpf.Example is a "compile from source" and does not rely on the CefSharp.Core and CefSharp.Wpf packages so it's up to date with CefSharp.
What's in the CefSharp repo only relies on CEF.* NuGet files re-packaged via our cef-binaries repo of upstream CEF project releases.

This really just points to that we need to get a 31.0.0-pre2 out the door real-soon-now!

 
Upon investigation (and without an in depth knowledge of how everything works together) I found that while the WebView control is used in the CefSharp.MinimalExample, the ChromiumWebBrowser control is used the in the CefSharp.Wpf.Example.

So my question is simply, what is the difference between the two controls and why would the ChromiumWebBrowser control perform significantly better?
 
As explained above; newer code. ChromiumWebBrowser is simply a rename voted on and merged in https://github.com/cefsharp/CefSharp/pull/384

For changes to `master` since last release see the ChangeLog wiki page

Best regards,
JornH


Regards,
Clayton
Reply all
Reply to author
Forward
0 new messages