Our department is currently working on a project for when a user selects an image from a photo gallery and imports it. Here's our code but we're struggling with a couple few things.
public partial class MainPage : PhoneApplicationPage
PhotoChooserTask selectphoto = null;
private void button1_Click(object sender, RoutedEventArgs e)
selectphoto = new PhotoChooserTask();
selectphoto.Completed += new EventHandler(selectphoto_Completed);
void selectphoto_Completed(object sender, PhotoResult e)
if (e.TaskResult == TaskResult.OK)
BinaryReader reader = new BinaryReader(e.ChosenPhoto);
image1.Source = new BitmapImage(new Uri(e.OriginalFileName));
What is our image named when its being imported? Where's it located? Can a user save the image and reload it if the app is opened again?