0
我知道有几个关于这个问题。从ListView的URL加载图像Xamarin Forms Visual Studio
我有以下代码:
Image image = new Image();
UriImageSource imgSource = new UriImageSource();
imgSource.SetBinding(UriImageSource.UriProperty, "ThumbnailUri");
imgSource.Parent = image;
...
的问题是我不知道如何整合到imgSource
对象image
?
意味着如何将孩子添加到imgSource
到image
?
我设置了imgSource.Parent = image;
,但图像在列表视图UI中不可见。
我有一个包含类似属性的模型:
Uri ThumbnailUri {get;set;}
我要显示在列表视图中的形象。
使用图像的来源属性 – Jason
真棒,谢谢,把它作为答案,我会接受它 –