Metro风格应用程序的HTML / CSS渲染器 [英] HTML/CSS Renderer for Metro-Style Apps

查看:131
本文介绍了Metro风格应用程序的HTML / CSS渲染器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前用于Metro样式应用程序的WebView不适用于我,因为它托管在单独的HWND中,使得无法将WebView与其他控件重叠。此外,提供的API不足以让我使用它(例如,没有可能处理onNavigation事件)。

The current WebView for Metro-Style apps is unusable for me because it is hosted in a seperate HWND, making it impossible to overlay the WebView with other controls. Additionally, the APIs provided are not enough for me to use it (e.g. no possibilty to handle the "onNavigation" events).

我在寻找一个C ++库解析HTML / CSS和使用DirectX渲染。我愿意写我自己的渲染,但这不容易。我会帮助至少有一个适当的HTML / CSS解析器。

I am looking for a C++ library that can parse HTML/CSS and render using DirectX. I am willing to write my own renderer but it is not easy. I would help to atleast have a proper HTML/CSS parser.

我还检查了我是否可以使用Gecko或Webkit,但他们会失败商店批准(也是非常复杂,我的项目有点过分。)

I also checked if I can use Gecko or Webkit but they would fail store approval (also they are highly complicated and a little bit overkill for my project.)

其他要求:


  • 非GPL(必须在封闭源商业应用中允许。)

  • XHTML投诉解析器/ renderer

  • 源代码可用性是一个加号。否则x86& ARM需要。

推荐答案

Windows 8.1中的新WebView解决了我之前所有的问题有。在XAML应用程序中混合新的WebView可以在没有任何空域问题的情况下完成(即使多个WebView可以放在彼此之上)。
因为没有提到的解决方案真正解决我的问题(不兼容Metro风格的应用程序),我选择回答我自己的问题,其他人寻找信息。

The new WebView in Windows 8.1 has solved all of the issues I previously had. Mixing the new WebView in XAML apps can be done without any airspace issues (even multiple WebViews can be placed over each other). Since none of the mentioned solutions really solve my issue (not compatible with Metro-Style apps), I have choosen to answer my own question for other people looking for information.

MSDN链接: http: //msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webview

这篇关于Metro风格应用程序的HTML / CSS渲染器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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