在Silverlight应用程序呈现HTML内容 [英] Rendering HTML Content within Silverlight application

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

问题描述

在我们的应用程序之一,它需要显示Silverlight的2.0容器的一个符号列表。我们已经决定使用HTML标记文字相同。虽然也有适用于谷歌选项,如覆盖HTML DIV容器等数字,我想知道什么是这样做的最可行的方法。

In one of our application it is required to display bullet list in one of the Silverlight 2.0 container. We have decided to use HTML markup text for the same. While there are number of options available on Google like overlaying HTML div container etc., I would like to know what is the most workable way of doing this.

推荐答案

我觉得最简单的方法是使用一些3 - 第三方解决方案。例如,拥有的Telerik的HtmlPlaceholder,使您可以显示里面的Silverlight应用程序的HTML页面。你可以看到一个演示在这里:<一href="http://demos.telerik.com/silverlight/#HtmlPlaceholder/FirstLook">http://demos.telerik.com/silverlight/#HtmlPlaceholder/FirstLook

I think the easiest will be to use some 3-rd party solution. For example, Telerik has an HtmlPlaceholder that allows you to display html pages inside Silverlight application. You can see a demo here: http://demos.telerik.com/silverlight/#HtmlPlaceholder/FirstLook

这是如何使用它:

<Grid>
    <telerik:RadHtmlPlaceholder SourceUrl="http://google.com" />
</Grid>

这篇关于在Silverlight应用程序呈现HTML内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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