在我的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");
但这并没有成功。解决方案是什么?