my xaml code
<ListView ItemsSource="{x:Static local:MyData.ImageCollection}">
<ListView.ItemTemplate>
<DataTemplate>
<ImageCell ImageSource="{Binding URLs}">
</ImageCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
image in xxxx.Droid/Resources/drawable/test.jpg
ImageCollection here:
public class MyImageSource
{
public MyImageSource(string sources)
{
this.URLs = sources;
}
public string URLs { get; set; }
}
public static class MyData
{
static MyData()
{
MyImageSource[] Sources = new MyImageSource[] {
new MyImageSource("test.jpg"),
new MyImageSource("test.jpg"),
new MyImageSource("test.jpg"),
new MyImageSource("test.jpg")
};
}
public static MyImageSource[] ImageCollection { get; set; }
}
How can I achieve this function. ListView Binding ImageCell and Image Resource In the cloud .it's dynamic data
e.....My English is not good!sorry