I've seen a few COM controls which wrap the Gecko rendering engine (GeckoFX, as well as the control shipped by Mozilla - mozctlx.dll). Is there a wrapper for Webkit that can be included in a .NET Winform application?
问题:
回答1:
There's a WebKit-Sharp component on Mono's GitHub Repository. I can't find any web-viewable documentation on it, and I'm not even sure if it's WinForms or GTK# (can't grab the source from here to check at the moment), but it's probably your best bet, either way.
回答2:
I've just release a pre-alpha version of CefSharp my .Net bindings for the Chromium Embedded Framework.
Check it out and give me your thoughts: https://github.com/chillitom/CefSharp (binary libs and example available in the downloads page)
update: Released a new version, includes the ability to bind C# objects into the DOM and more.
update 2: no-longer alpha, lib is used in real world projects including Facebook Messenger for Windows, Rdio's Windows client and Github for Windows
回答3:
Haven't tried yet but found WebKit.NET on SourceForge. It was moved to GitHub.
Warning: Not maintained anymore, last commits are from early 2013
回答4:
Berkelium is a C++ tool for making chrome embeddable.
AwesomiumDotNet is a wrapper around both Berkelium and Awesomium
BTW, the link here to Awesomium appears to be more current.
回答5:
There's a WebKit-Sharp component on Mono's Subversion Server. I can't find any web-viewable documentation on it, and I'm not even sure if it's WinForms or GTK# (can't grab the source from here to check at the moment), but it's probably your best bet, either way.
I think this component is CLI wrapper around webkit for Ubuntu. So this wrapper most likely could be not working on win32
Try check another variant - project awesomium - wrapper around google project "Chromium" that use webkit. Also awesomium has features like to should interavtive web pages on 3D objects under WPF
回答6:
There is OpenWebKitSharp, a fork of WebKit.NET 0.5 and very advanced. Details: http://code.google.com/p/open-webkit-sharp/
回答7:
I was able to do this using CefSharp (which uses chromium browser).
Here are a couple posts that show this in action:
- Running Chrome inside O2
- Video: Installing and running CefSharp (C# Chrome with WPF Browser)
- Video: Running Chrome Natively in O2 and VisualStudio
回答8:
The Windows version of Qt 4 includes both WebKit and classes to create ActiveX components. It probably isn't an ideal solution if you aren't already using Qt though.
回答9:
Take a look at the DotNetBrowser library. It provides Chromium-based WPF and WinForms browser controls, which are quite easy to embed into .NET application. It supports all the modern web standards including HTML5, CSS3 and JavaScript. The rendered page looks exactly like in Google Chrome.
The library inherits Chromium's multi-process architecture – each web page is rendered in a separate Chromium process, and the application will continue working even after plugin crash or any other unexpected error occurs on the web page.
Here are some other useful features, provided by DotNetBrowser: it is possible to listen to load events, handle network activity, configure proxy, simulate user actions, work with cookies, access and modify DOM, listen to DOM events, call JavaScript from .NET and vice versa, use web camera and microphone on the web page, set up WebRTC-based communication, and more.
Check out the API Reference for more details.
The code snippet below demonstrates how to create a BrowserView, embed it into a Form, and load a URL:
using System.Windows.Forms;
using DotNetBrowser;
using DotNetBrowser.WinForms;
namespace WinForms.DotNetBrowser
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
BrowserView browserView = new WinFormsBrowserView();
Controls.Add((Control) browserView);
browserView.Browser.LoadURL("http://www.youtube.com");
}
}
}
Once you run the example above you will get the following output:
The library is commercial, however it is free for use in Open-Source and Academic projects. Commercial licenses include support packages for different team sizes. It is also possible to purchase the library’s source code.
Besides its own page the component is available as NuGet package and as VSIX package in the Visual Studio Marketplace.
回答10:
I don't think there is a current one out there, but there is a [barely documented] project on Google Code with an older version...
回答11:
try this one http://code.google.com/p/geckofx/ hope it ain't dupe or this one i think is better http://webkitdotnet.sourceforge.net/