Windows phone 7 图像数据绑定不工作

Windows phone 7 图像数据绑定不工作,windows-phone-7,c#-4.0,data-binding,Windows Phone 7,C# 4.0,Data Binding,这里我想在动态列表中显示图像,图像来自数据绑定第四行,下面是代码 <Image Height="100" Width="100" Source="{Binding LineFour}" Margin="12,0,9,0"/> 现在的问题是图像没有显示?怎么办?浏览此链接 基本上提供直接的url到源不工作,你需要使用一个转换器。在所有源程序接受图像url后,将位图/图像源对象分配给图像控件 所以基本概念是使用转换器:-)从哪里获得这些图像?这些是在项目中,还是在线或其他来源? p

这里我想在动态列表中显示图像,图像来自数据绑定第四行,下面是代码

 <Image Height="100" Width="100" Source="{Binding LineFour}" Margin="12,0,9,0"/>
现在的问题是图像没有显示?怎么办?

浏览此链接

基本上提供直接的url到源不工作,你需要使用一个转换器。在所有源程序接受图像url后,将位图/图像源对象分配给图像控件


所以基本概念是使用转换器:-)

从哪里获得这些图像?这些是在项目中,还是在线或其他来源?
public void LoadData()
        {
            // Sample data; replace with real data
            this.Items.Add(new ItemViewModel() { LineOne = "beach 1", LineTwo = "hill 1", LineThree = "monu 1", LineFour="file3"});
            this.Items.Add(new ItemViewModel() { LineOne = "beach 2", LineTwo = "hill 2", LineThree = "monu 2", LineFour="file2" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 3", LineTwo = "hill 3", LineThree = "monu 3", LineFour="file3" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 4", LineTwo = "hill 4", LineThree = "monu 4", LineFour = "file2" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 5", LineTwo = "hill 5", LineThree = "monu 5", LineFour = "file3" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 6", LineTwo = "hill 6", LineThree = "monu 6", LineFour = "file2" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 7", LineTwo = "hill 7", LineThree = "monu 7", LineFour = "file3" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 8", LineTwo = "hill 8", LineThree = "monu 8", LineFour = "file2" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 9", LineTwo = "hill 9", LineThree = "monu 9", LineFour = "file3" });
            this.Items.Add(new ItemViewModel() { LineOne = "beach 10", LineTwo = "hill 10", LineThree = "monu 10", LineFour = "file2" });

            this.IsDataLoaded = true;
        }