Namespaces
Variants
Actions

Resetting the Live Tile in Windows Phone

Jump to: navigation, search

This article explains how to Reset the Live Tile information to the default in Windows Phone 7, 8

WP Metro Icon UI.png
Article Metadata

Compatibility
Platform(s): Windows Phone 7

Article
Created: mohib.sheth (06 Mar 2012)
Last edited: chintandave_er (16 Dec 2012)

Introduction

The ability to update the Live Tile in Mango is a really great feature. I have an application where I’m generating dynamic images and setting the live tile to an isostore:/Shared/ShellContent url. But, I have a setting that the user can use to turn on/off live tile updates. When turning it off, I initially couldn’t figure out how to reset the tile.

The trick is to use an appdata: url to refer to your original image. For example, if your standard tile image is called “background.png”, then you can use the following to reset it:

public static void ResetTile()
{
StandardTileData newTileData = new StandardTileData();
newTileData.BackgroundImage = new Uri("appdata:background.png");
ShellTile appTile = ShellTile.ActiveTiles.First();
appTile.Update(newTileData);
}

Note: If you have changed any other properties like the BackContent, you will want to reset them by setting them to “”. Passing in null will leave the values unchanged.


Summary

This is a simple method of updating your Application's Live Tile from a IsolatedStorage rather than from a web service.

This page was last modified on 16 December 2012, at 20:05.
153 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved