将图像从隔离存储区绑定到列表框 [英] Binding an image from isolated storage to a listbox

查看:76
本文介绍了将图像从隔离存储区绑定到列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
我一直在努力弄清楚如何将图像从隔离的存储绑定到列表框.
我已经阅读了100多个论坛,但没有任何效果.
它们中的大多数都提供了从文件夹位置或URL进行绑定的示例,但没有从iso存储中进行绑定的示例.
这是XAML代码.

Hello everyone.
I've been beating my wheels on figuring out how to bind an image from isolated storage to a listbox.
I've read over 100 forums and nothing works.
Most of them give examples on to bind from a folder location or a URL but none from iso storage.
here is XAML code.

< Grid  Grid . Column =" 0 "  
    < Image  Height =" 99 "Horizo​​ntalAlignment =" Stretch" Margin =" 0 0 0 0 名称" ="image1"拉伸"统一""VerticalAlignment ="顶部"源" ="" " />  
</Grid> 
<Grid Grid.Column="0">  
     <Image Height="99" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="image1" Stretch="Uniform" VerticalAlignment="Top" Source="{Binding ThumbImage}" />  
</Grid> 

推荐答案

尝试此代码.

公共类mylist


这篇关于将图像从隔离存储区绑定到列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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