Posted By

kajinka13 on 02/07/12


Tagged

window Net Silverlight wp7 Tiled


Versions (?)

Mostrare una tile dall'isolated storage con Windows Phone 7.1


 / Published in: C#
 

Mostrare una tile dall'isolated storage con Windows Phone 7.1

  1. WebClient client = new WebClient();
  2. client.OpenReadCompleted += (sender, event) => {
  3. using (IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication())
  4. {
  5. using (Stream tileStream = storage.CreateFile("Shared/ShellContent/tile.png"))
  6. {
  7. evt.Result.CopyTo(tileStream);
  8. }
  9. }
  10.  
  11. ShellTile tile = ShellTile.ActiveTiles.First();
  12. tile.Update(new StandardTileData
  13. {
  14. BackgroundImage = new Uri("isostore:/Shared/ShellContent/tile.png")
  15. });
  16. };
  17. client.OpenReadAsync(new Uri("http://forum.aspitalia.com/avatars/90/Ricciolo.avatar"));

Report this snippet  

You need to login to post a comment.