Sunday, February 12, 2012

Accessing Files in Windows Phone Apps



Traditionally in .NET, for WPF or elevated Silverlight Out of Browser applications, you could retrieve files from local storage directly by accessing the file system and retrieving directories and files names. You could do so in the following way:

However, when working with Silverlight apps (without elevated permissions) or specifically, Windows Phone applications you are not allowed to go outside the boundaries of the application Isolated Storage. This means, that you need to access files through it only and you are limited to the boundaries it imposes.

To access files in a Windows Phone application from the Isolated Storage you can do it in the following way:

Hope it helps !

No comments:

Post a Comment