-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Upgrading from CefSharp 1
Alex Maitland edited this page Jun 15, 2015
·
4 revisions
Things to note when Upgrading from CefSharp 1
Switch CefSharp Version
- Remove CefSharp1 References (CefSharp, CefSharp.WinForms)
- Delete all libs / locales of CefSharp1
- Close Visual Studio completely and then reopen
- Install CefSharp3 through Nuget (I just installed CefSharp.WinForms - it installs all required libraries as well)
- Close Visual Studio completely and then reopen
- Specify platform (x86 / x64)
Change class names
- Renamed
WebViewtoChromiumWebBrowser - Renamed
LoadCompletedtoFrameLoadEnd - Renamed
CEFtoCef - Renamed
CefSharp.SettingstoCefSettings - Change BrowserSettings initialization
webView = new WebView(url, browserSettings);
to this
webView = new ChromiumWebBrowser(url);
webView.BrowserSettings = browserSettings;- Rename
ExecuteScripttoExecuteScriptAsync - No more
webView.PropertyChanged(Use individual events inWinFormsor DataBinding inWPF) - Change
RequestHandler:- remove
RequestHandleandDownloadHandlerclass implementations - add DownloadHandler
- change
webView.RequestHandler = new RequestHandler(); to webView.DownloadHandler = new DownloadHandler();
- remove
-
ILifeSpanHandler.OnBeforePopuphas different parameters- so Implement Interface of
ILifeSpanHandlerand remove the old function signature
- so Implement Interface of
Your problem not listed here? Check out https://github.com/cefsharp/CefSharp/issues?q=is%3Aissue+label%3Acef1-cef3-upgrade or try searching on the CefSharp Google Group