0

我使用此代码,但我无法查看图片。

public class ImgInfo
{
    public string img { get; set; }
}

private void ShowPictures()
{
    List<ImgInfo> images = new List<ImgInfo>();
    dynamic pictures = _fb.Get((selectedAlbum.id + "/photos"));
    foreach (dynamic pic in pictures.data)
    {
        ImgInfo imginfo = new ImgInfo() { img = pic["picture"]};
        images.Add(imginfo);
    }

    ImageGridView.ItemsSource = images;
}

XAML:

<ListBox x:Name="ImageGridView" BorderThickness="0">
4

0 回答 0