我silverlight应用程序需要回到主从何处来为其数据。我怎么web客户端连接回到根本的网站。

例如,我silverlight司门是坐在一个亚马逊S3桶,并通过加载HTML文件在同一桶。我想做一个 http://mybucket.s3.amazonaws.com/ 然后采取行动的xml,返回从该得到的。

有帮助吗?

解决方案

使用 System.Windows.Application.Host -看看 该文件, ,其中包含这样的例子:

"以下例子显示如何使用主机得到的路径控应用程序包。"

<UserControl x:Class="SilverlightApplication.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Grid>
        <TextBlock Text="{Binding Source}" />
    </Grid>

</UserControl>

其他提示

应用程序。电流。主机。源在C#

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top