Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Upgrading from CefSharp 1

Alex Maitland edited this pageJun 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

  • RenamedWebView toChromiumWebBrowser
  • RenamedLoadCompleted toFrameLoadEnd
  • RenamedCEF toCef
  • RenamedCefSharp.Settings toCefSettings
  • Change BrowserSettings initialization
webView=newWebView(url,browserSettings);tothis webView=newChromiumWebBrowser(url);webView.BrowserSettings=browserSettings;
  • RenameExecuteScript toExecuteScriptAsync
  • No morewebView.PropertyChanged (Use individual events inWinForms or DataBinding inWPF)
  • ChangeRequestHandler:
    1. removeRequestHandle andDownloadHandler class implementations
    2. addDownloadHandler
    3. change
    webView.RequestHandler=newRequestHandler();towebView.DownloadHandler=newDownloadHandler();
  • ILifeSpanHandler.OnBeforePopup has different parameters
    • so Implement Interface ofILifeSpanHandler and remove the old function signature

Your problem not listed here? Check outhttps://github.com/cefsharp/CefSharp/issues?q=is%3Aissue+label%3Acef1-cef3-upgrade or try searching on theCefSharp Google Group

Anyone with a GitHub account can edit this wiki, contributions are encouraged and welcomed.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp