C#WPF web浏览器的替代 [英] C# WPF WebBrowser alternative

查看:2095
本文介绍了C#WPF web浏览器的替代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个网页浏览我的.NET 3.5应用程序中,我不希望使用默认的浏览器上(因为感觉越野车和慢)。我想克里斯·卡瓦纳的铬,但我无法得到它的工作...有什么更容易使用的替代品?我在寻找的东西很简单,光在电脑上,如果该事项将举办一个网络商店前。

I need a web browser inside my .NET 3.5 application and I don't want to use the default webbrowser (because it feels buggy and slow). I tried Chris Cavanagh's chromium but I just couldn't get it to work... are there any easier to use alternatives? I'm looking for something very simple and light on the computer, it will host a webstore front if that matters.

更新: 5年以后,需要再次出现。当时我用 Awesomium 显示网页浏览器在我的计划,TBH,我不记得如何去但我也想不起它是一个真正的痛苦。

UPDATE: 5 years later, the need arose again. Back then I used Awesomium to show the web browser in my program, tbh, I don't remember how it went but I also don't recall it being a real pain.

今天,虽然,我想再次使用它,我看到了code已被关闭,现在是商业性的。我们尽力了,打了一个障碍,不能改变code的工作,我们去用的 CEF CefSharp ,能够看到code所做的工作所以更容易和更少的巫毒(FFS,awesomium甚至混淆了code,所以我不明白我在做什么错误的)。

Today though, I wanted to use it again and I see the code had been closed and it is now commercial. We tried, hit a hurdle, couldn't change the code to work the way we wanted so we went the open source route with CEF and CefSharp, being able to see the code made the work so much easier and less voodoo (ffs, awesomium even obfuscate their code so I couldn't understand what I'm doing wrong).

基本上,如果你愿意支付2900 $,不需要关闭屏幕渲染,但是CEF这么多强大,能够改变code,以满足您的需求Awesomium是很酷。

Basically Awesomium is cool if you want to pay 2900$ and don't need off screen rendering but CEF is so much more powerful being able to change the code to suit your needs.

PS。我们给CefGlue 5分钟的尝试,所以我们搬到CefSharp将立即工作,这是伟大而可怕的事情大约两个相互竞争的开源框架,它并没有立即开展工作。

PS. We gave CefGlue a 5 minute try, it didn't work immediately so we moved to CefSharp which immediately worked, this is the great and terrible thing about two competing open source frameworks.

推荐答案

结帐我的新项目: https://github.com/chillitom/ CefSharp

这带来了铬嵌入式框架到.NET / C#。请参阅源,二进制文件和示例GitHub的页面。

This brings the Chromium Embedded Framework to .Net / C#. See the Github page for source, binaries and example.

特点:


  • 导航命令的浏览器控件

  • INotifyPropertyChanged的事件

  • ExecuteJavascript

  • 注册自己的方案/协议处理程序

  • 拦截资源下载

  • 绑定CLR对象到铬的JavaScript环境。

它仍然在pre-α阶段,因此所有的反馈AP preciated。

It's still in the pre-alpha stages so all feedback appreciated.

这篇关于C#WPF web浏览器的替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆