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);

}


Advertisements

About Pavan Pareta

My name is Pavan Pareta, I enjoy computers and general technology. I am more interested in the areas of Computer Security, Programming and developing innovative s/w for Windows Mobile and Windows Phone 7. I like MS Technology and support open-source software, because I believe it plays a major role in knowledge sharing and exchange of ideas, which effectively leads to better software. Additionally, I am a follower of the KISS (Keep It Simple Stupid) philosophy. I Love C#.NET and recently I am fall in love with Silverlight :) Introduce to my machine My main workstation is a Intel Pentium Core Duo and my primary operating system is Windows 7.
This entry was posted in Mango, Tip, Windows Phone 7. Bookmark the permalink.

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

  1. Unknown says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s