Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cefsharp/CefSharp
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
https://github.com/cefsharp/CefSharp
browser c-plus-plus c-sharp cefsharp framework winforms wpf
Last synced: 11 days ago
JSON representation
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
- Host: GitHub
- URL: https://github.com/cefsharp/CefSharp
- Owner: cefsharp
- License: other
- Created: 2010-12-03T15:23:23.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T08:37:12.000Z (6 months ago)
- Last Synced: 2024-05-22T09:10:17.959Z (6 months ago)
- Topics: browser, c-plus-plus, c-sharp, cefsharp, framework, winforms, wpf
- Language: C#
- Homepage: http://cefsharp.github.io/
- Size: 274 MB
- Stars: 9,696
- Watchers: 543
- Forks: 2,898
- Open Issues: 51
-
Metadata Files:
- Readme: README.WPF.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: .github/support.yml
Awesome Lists containing this project
- awesome - CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework (C# #)
- my-awesome - CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework (C#)
README
# README (WPF)
This file provides some basic information about how to use the CefSharp.Wpf NuGet package.
CefSharp is based on CEF (Chromium Embeddable Framework), which is composed of a number of .dll and .pak files. For this reason, it's not enough to just add .NET reference to the CefSharp.Wpf and the CefSharp assemblies; the other .dll/.pak files must also exist in your projects "Output path" (as defined in the Visual Studio project properties.
This is done automatically by the CefSharp.Wpf NuGet package (or the packages it depend on). However, it is only possible to copy these files into *either* the Debug or Release target of your project. Because it is the default when creating a new project, and the target which is normally used when developing .NET applications, I have chosen to place them in the bin\Debug folder for now. This means that if you want to run your application in Release mode, you need to copy these files from bin\Debug to bin\Release for the moment.
To be able to use CefSharp.Wpf, you basically just have to add a ChromiumWebBrowser like this:
``` xml
```
...and in the code-behind some code like this:
``` csharp
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();Cef.Initialize(new CefSettings());
}
}
```