Best Way to Render HTML in WinForms application? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-02 17:39:38

For managed HTML renderer see HtmlRenderer on GitHub.

Stayed with the built-in WebBrowser. The HtmlRenderer from the other answer is great, but renders an image.

Your could look into using a view engine. Most view engines can work in a stand-alone api manner

for example NHaml and nvelocity both can be used stand alone

http://code.google.com/p/nhaml/

http://www.castleproject.org/others/nvelocity/index.html

And i assume Spark can be as well

http://dev.dejardin.org/

I have developed what you were asking for: a "completely managed HTML renderer", which will "render relatively simple HTML in C#". It supports a subset of CSS, which you can "specify in a inline CSS stylesheet (inside the head element)".

For details, see the ModelText HTML control.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!