Take the 2-minute tour ×

I have a project in my class to make image viewer and hide selected images in C#.

I want to search all images(.jpeg) on windows phone 7 & display it in in a Listbox with images stack panel.

Can say an image gallery & after selecting multiple images have to store it in isolated storage.

I figured that since I don't have windows phone don't know how are folders & drive structure in windows phone is it like our windows xp or 7 C: drive as phone memory and D: drive as memory card as in android which have partitions for user data, systems, cache?

Sorry if question is misunderstand want to retrieve all images from device to a list box containing image Have two list box scrolling images vertically

List Box 1

MediaLibrary mediaLibrary = new MediaLibrary();
            var pictures = mediaLibrary.Pictures;
            foreach (var picture in pictures)
                BitmapImage image = new BitmapImage();
                MediaImage mediaImage = new MediaImage();
                mediaImage.ImageFile = image;

Then on selectionchanged event of list box 1 want to select image / images and move that image to list box 2 one by one which will be used to store in an isolated storage or anything else

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Well, Windows Phone will not expose any file system to you. Windows Phone has something called tasks.

Tasks are divided into launchers and choosers.

What you need to use is called PhotoChooserTask

Check this link;


However, it won't give you multiple files at once.

By the way, you can always run with the Windows Phone Emulator included in the SDK. No need to have a physical device.

share|improve this answer
thanks Adrian , but i want to access multiple images after searching google found that it is possible using list box haven't used that method though, the aboive code displays images scrolling vertically whenver i tap on an image that image goes to second listbox and whenever i tap second image it adds to the listbox , and goes on. and that selected images in second list box will gets stored in isolated storage or encrypted. any help will be appreciated Thanks –  jtushar53 Dec 30 '12 at 6:49
Hi, any solution for displaying and selecting multiple images? –  Alan Feng Nov 17 '13 at 5:07
@AlanFeng, well, you can use the MediaLibrary class msdn.microsoft.com/en-us/library/… like in the example above, and use the GridMode of the LongListMultiSelector of the WPToolkit. phone.codeplex.com See this video in minute 5:20, has exactly what you are looking for. channel9.msdn.com/Series/… –  Adrian Salazar Nov 18 '13 at 11:44

Your Answer


