Silverlight中的HTML [英] HTML in Silverlight

查看:104
本文介绍了Silverlight中的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为讨论板制作了一个silverlight界面。板web接口允许通常的HTML标签,如i,a,img,b,u。所以现在我需要能够在Silverlight中显示它。
此: http://www.vectorlight.net/silverlight/controls/rich_textblock .aspx 看起来像我需要的,除了它几乎不显示任何东西。每个HTML(我已经确保它的HTMLAgility有效)字符串我给它或者使整个SL应用程序变白,或块显示所有的文本在彼此的顶部。偶尔(只有几个非常简单的字符串),它会显示正确。

I am making a silverlight interface for a discussion board. The boards web interface allows the usual HTML tags like i,a,img,b,u. So now I need to be able to display that in Silverlight. This: http://www.vectorlight.net/silverlight/controls/rich_textblock.aspx seemed like exactly what I need except that it hardly displays anything right. Every HTML(i've made sure it's valid with HTMLAgility) string I give it either makes the whole SL app go white, or the block displays all the text on top of each other. Occasionally(with a few VERY simply strings), it will display right.

这需要工作OOB和在,我不能使用WebBrowser控件,

This needs to work OOB and in, and I cannot use the WebBrowser control as I would need hundreds of instances at a time and it gets slow(tried it OOB).

感谢。

推荐答案

您尝试过这个吗?

http://www.sharpgis.net/post/2010/09/15/Displaying-HTML-in-Silverlight.aspx

也许它可以更好地满足你的需求。

Maybe it can serve your needs better.

这篇关于Silverlight中的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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