* Tries to handle any possible cases where the ChromiumWebBrowser.Parent gets changed. (WinForms.Examples doesn't currently need this, btw) * Expose RefindParentForm as public so that the calling control has control over the call to .FindForm(). * Only indicate movement when there is actual x/y movement and we're not going from Maximized to non-Maximized since this logic ends up being handled elsewhere. * Add some debugging logic so that other folks can experiment with this scary looking change. * Cave after realizing that every ChromiumWebBrowser needs to be notified of any kind of movement. (and not JUST the visible tabs from WinForm.Examples) This means we DO NOT check ParentControl.Visible on purpose. This was tested by creating two tabs in Winforms.Example, point both at TooltipTest.html (from the custom scheme) and move/resizing around and testing both tabs after the move/resize finished.
CefSharp - Embedded Chromium for .NET
This project contains .NET CLR bindings for The Chromium Embedded Framework (CEF) by Marshall A. Greenblatt. A small Core of the bindings are written in C++/CLI but the majority of code here is C#. It can of course be used from any CLR language, e.g. C# or VB.
CefSharp provides both WPF and WinForms web browser control implementations. See the CefSharp.Wpf.Example or CefSharp.WinForms.Example projects for example web browsers built using this library; they are (at this moment) the best "documentation" of features. In addition see the CefSharp.MinimalExample repo for how CefSharp can actually be used via NuGet packages.
This project is BSD licensed, which means that it can be used from both proprietary and free/open source applications. For the full details, see the LICENSE file.
Documentation, Contact etc.
Apart from code samples mentioned above work-in-progress documentation can be found in the wiki. If something is missing/incomplete, please don't hesitate to ask on StackOverflow or in the CefSharp Google Group. You might also find help by searching the archive to that same Google Group for previous questions.
NuGet Packages
Binary releases contain everything needed to embed Chromium in your .Net/CLR application. For usage see FAQ #8 item.
Stable
for either WPF or
WinForms based on Chromium 37 now including JS Binding.
Ultra stable/LTS Read "He's dead Jim", based on Chromium 25. See the CefSharp1 branch README for CefSharp1 info. Please note that this version is no longer supported.
Branches & Forks
- Development is done in the
masterbranch, which used to be calledCefSharp3during the development cycle. New features are preferably added in feature branches, if the changes are more than trivial. - Ultra-stable/LTS sources are in
CefSharp1. - The CefSharp GitHub project page is the recommended starting place. This is the "official" CefSharp fork, as maintained by the CefSharp community. You can also view the entire network of public forks/branches.
Links
- CefGlue: An alternative .NET CEF wrapper built using P/Invoke.