我有一個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)**權限? –