是否可以像 WebView 一样在 Windows 窗体中嵌入 Gecko 或 Webkit? [英] Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
问题描述
我很想知道是否有 Gecko.NET 之类的东西;) 我的意思是,就像我们可以嵌入 WebView 一样,这是任何 Windows 窗体应用程序中 IE7 的实例"(并告诉它到 navigateto(fancy_url);
).我喜欢使用 Firefox 或 WebKit.
I'd love to know if there is such a thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an "instance" of IE7 inside any Windows Forms application (and tell it to navigateto(fancy_url);
). I'd love to use Firefox or WebKit.
有人试过吗?
更新:请记住,虽然可以使用上述控件嵌入 Gecko,但仍然无法在使用 Gecko 时打印.
UPDATE: Please bear in mind that although it is possible to embed Gecko using the mentioned controls, it is still impossible to print while using Gecko.
2010 年 3 月更新:仍然无法使用 GeckoFX 进行本地打印,但是有几种方法可能就足够了,具体取决于您要尝试的内容做.请参阅:http://geckofx.org/viewtopic.php?id=796 了解更多信息信息.
UPDATE March 2010: It’s still not possible to print natively using GeckoFX, however a couple of methods exist that may be enough, depending upon what you’re trying to do. See: http://geckofx.org/viewtopic.php?id=796 for more information.
2013 年 10 月更新:我不再从事 Windows 开发,所以我对此不感兴趣,但似乎可以在此处找到 Gecko 的开发:https://bitbucket.org/geckofx 并且它似乎最近更新了.留在这里供未来的 Windows 开发人员使用 ;)
UPDATE October 2013: I am no longer doing Windows development so I have no interest in this, but seems like the development of Gecko can be found here: https://bitbucket.org/geckofx and it seems to be recently updated. Leaving this here for future Windows devs ;)
2017 年 1 月更新:我收到了一家名为 TeamDev 的公司的电子邮件.他们创建了一个名为DotNetBrowser"的基于 Chromium 的 .NET 浏览器组件,可用于在 Windows 窗体应用程序中显示现代网页.
UPDATE January 2017: I have gotten an email from a company called TeamDev. They created a Chromium-based .NET browser component called "DotNetBrowser" which can be used to display modern web pages in Windows Forms applications.
直接引用电子邮件:
以下是有关该组件的一些详细信息,可能会有所帮助:
Here are some details about the component, which might be helpful:
- DotNetBrowser 基于 Chromium,因此支持 HTML5、CSS3、JS 和最新的网络标准.该库的基础 Chromium 版本会定期更新.
- 该组件适用于 WPF 以及 Windows 窗体桌面应用程序,并且适用于 C# 和 VB.NET.
- 图书馆已获得商业许可,但为开源和学术项目提供免费许可.
免责声明: 我没有使用这个 DotNetBrowser,因为我不再从事 Windows 开发,但如果您正在寻找解决方案,可能值得检查一下.>
推荐答案
http://code.google.com/p/geckofx/
这是一个很好的 .NET 包装的 Gecko 版本
This is a nice .NET-wrapped version of Gecko
这篇关于是否可以像 WebView 一样在 Windows 窗体中嵌入 Gecko 或 Webkit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!