Search code examples
c#windows-phone-7windows-phone-8windows-phoneisolatedstorage

How to get path of a file which is in IsolatedStorage?


I want to set an image which is stored in IsolatedStorage as background image of a tile.

we create tiles this way:

StandardTileData tile = new StandardTileData();

Now tile.BackgroundImage accepts a Uri. what is full path of an image which is in /MyFolder/MyFile.png in IsolatedStorage?


Solution

  • tile.BackgroundImage = new Uri("isostore:/MyFolder/MyFile.png", UriKind.Absolute);
    

    Here's more information about data in WP8: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402541(v=vs.105).aspx