1
我正在編寫一個Windows應用商店應用程序,該資源從資產加載.png
圖片。Windows商店應用資產無法在平板電腦上加載
的代碼:
private static readonly string filePath = "ms-appx:///Base/Assets/Faces/img1.png";
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(filePath, UriKind.Absolute));
當我正確測試計算機上的應用程序,圖像加載,但是當我測試它的片劑,圖像不會加載。有關更多信息:圖像不加載ARM處理器,在x86上一切正常。
圖像屬性設置爲Copy always
和Content
。
你有沒有嘗試過在模擬器? – Krekkon
它在平板電腦表面試過它rt –