/// <summary> /// Images from URL. This is the event handler the model sends when a new image is ready. /// It also attempts to save the image to Isolated Storage /// </summary> /// <param name="stream">The stream.</param> public void ImageFromUrl(object o, StorageStream e) { // Extract the stream from the event args update Image control StorageStream s = e; BitmapImage image = new BitmapImage(); image.SetSource(s); ImageSource = image; // Save it to Isolated Storage dataModel.Save(s); s.Close(); }