无法绑定图像形式图像源 windows phone 8

not able to bind image form image source windows phone 8

这是代码..

 public class contactsclass
    {
        public Uri imgs;

        public contactsclass()
        {

        }

    }

xmal 文件:-

  < ListBox x:Name="listbox1" Margin="0,0" >

  < DataTemplate>

< Image  Name="c1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="100" Stretch="Fill" Margin="0" Source="{Binding imgs}"/>

  < /DataTemplate>

< /ListBox>

文件背后的代码

contactsclass cn = new contactsclass();

cn.imgs= new Uri(("Assets/plus.jpg"),UriKind.RelativeOrAbsolute);

listcontact.Add(cn);


listbox1.ItemsSource = listcontact;

数据绑定仅适用于 public 属性,不适用于字段。

改变

public Uri imgs;

public Uri imgs { get; set; }