当前位置:编程学习 > C#/ASP.NET >>

win8.1+VS2013 商店应用程序 中GridView怎么绑定数据源显示网络图片

CS代码:

//绑定数据
            Actions action = currentGrid.Tag as Actions;
            this.ImgList.Source = action.thumbnail;


xaml代码:


<UserControl.Resources>
        <CollectionViewSource x:Name="ImgList"  ItemsPath="thumbnail" />
    </UserControl.Resources>

<GridView ItemsSource="{Binding Source={StaticResource ImgList}}" SelectionMode="None">
                <GridView.ItemTemplate>
                    <DataTemplate>
                        <Image Grid.Column="0" x:Name="img1" Stretch="Fill" Width="500" Height="400" Source="{Binding thumbnail}"></Image>
                    </DataTemplate>
                </GridView.ItemTemplate>
            </GridView>


现在遇到的问题就是,我绑定数据源的时候,用本地测试的没有问题,但是从服务器取的图片地址是这样的,这样就显示不出来图片。 --------------------编程问答-------------------- anybody here? --------------------编程问答-------------------- 是我表达的不清楚吗? --------------------编程问答-------------------- 没有人遇到吗?
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,