Each image in the collection has a serialized File Path. When loading the collection I need the image to load from the File Path. The code below will not work because IsolatedStorageFileStream isn't compatible with the IRandomAccessStream used for to image.SetSource().
public BitmapImage Image
{
get
{
var image = new BitmapImage();
if (FilePath == null) return null;
IsolatedStorageFileStream stream = new IsolatedStorageFileStream(FilePath, FileMode.Open, FileAccess.Read, IsolatedStorageFile.GetUserStoreForApplication());
image.SetSource(stream);
return image;
}
}
Is there alternative code to accomplish this?