在Silverlight应用程序呈现HTML内容应用程序、内容、Silverlight、HTML

2023-09-07 03:56:44 作者:残缺也是一种美

在我们的应用程序之一,它需要显示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页面。你可以看到一个演示在这里: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>