我有一个Xamarin.Forms应用程序ListView
与ImageCell
s。其中的图像可以在Android和iOS中看到,但不能在UWP中看到。ListView ImageCells的图像没有显示在UWP
相关代码:
imageCell.SetBinding(ImageCell.ImageSourceProperty, theImagePropertyName);
和属性:
return ImageSource.FromUri(uri);
uri
是正确的URI(如由断点),它是一个外部URI https://blahblahblah.com
,和作为所述 - 它适用于Android和iOS。我试过外部静态uri,内部(ms-appx:///Assets/a.png
)uri ...
可能是什么问题?
没有从属关系,你已经把你的图片在application's根文件夹? –
@JesusAngulo对不起,我不清楚 - uri是外部的('https:// blahblahblah.com')。我现在编辑了这个问题来说明问题。 – ispiro
您是否在清单中设置了** Internet(InternetClient)**权限? –