CefSharp wraps Chromium Embedded Framework for C# and VB.NET, offering WPF and WinForms browser controls plus an off-screen flavor.
Overview
CefSharp embeds a full Chromium browser inside .NET applications through a lightweight wrapper around CEF. Most code is C# with a portion of C++/CLI bindings, usable from any CLR language.
It ships WinForms and WPF browser controls, an HWND-hosted WPF option, and CefSharp.OffScreen for headless automation. The project website highlights HTML5, JavaScript, CSS3, WebGL, built-in PDF support, printing, and DevTools integration without extra browser dependencies beyond bundled CEF files.
Developers can execute JavaScript, expose .NET types to the page, hook JavaScript events, and drive the browser programmatically including DevTools and CefSharp Puppeteer for DOM access. NuGet packages distribute stable builds for Windows x86, x64, and ARM64 targets.
Microsoft .NET 4.5.2 or newer and a recent Visual C++ runtime are required. Documentation includes quick start guides, FAQ, wiki articles, and example WinForms and WPF applications.
Key features
- WPF and WinForms controls
- Off-screen headless browser
- HTML5 and JavaScript support
- PDF and printing modules
- JavaScript and .NET interop
- NuGet binary packages
- x86, x64, ARM64 Windows
- DevTools and Puppeteer port
Use cases
- Embedding web UI in WinForms
- WPF apps with HTML interfaces
- Headless browser automation
- Standards-based desktop browsers