Tuesday, December 27, 2011

How to get all Media Library pictures name in Windows Phone 7.

PictureCollection pc = new MediaLibrary().Pictures;

foreach (Picture item in pc)

{

MessageBox.Show(item.Name);

}


1 comment:

Unknown said...

whow, your blog post totally saved my day. I'd never have thought the Pictures method would return a complete collection of all pictures ...
man, you are simply ingenious.