在隔离存储中的URL到映像

时间:2014-08-04 10:01:47

标签: windows-phone-8 windows-runtime c++-cx windows-rt

在我的Windows Phone 8应用程序中,我在IsolatedStorge的一个名为' ProfileImages'的文件夹下有一些图像。

假设我想要一个名为' a.jpg'的图像的URI。 :

在C#中,我可以这样做,

Uri uri = new Uri("/ProfileImages/a.jpg", UriKind.Relative);

由于C ++ / CX中的Windows :: Foundation :: Uri,不支持相对的Uri,我试过像

这样的东西
this->imageUri = ref new Uri("appdata:/ProfileImages/a.jpg");

但这并没有成功。解决方案是什么?

0 个答案:

没有答案