O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programmatically Updating Shell Tiles

Both primary and secondary tiles can be updated by your app, either while your app is running in the foreground or from a background agent. Observe the following example:

ShellTile tile = ShellTile.ActiveTiles.FirstOrDefault();if (tile != null){    IconicTileData tileData = new IconicTileData        {            BackgroundColor = Colors.Cyan        };    tile.Update(tileData);}

Here the app uses the iconic tile template. The tile is retrieved from the static ActiveTiles collection of the ShellTile class. Regardless of whether the app is pinned to the Start Experience, ActiveTiles always contains at least one tile: the app’s primary tile. A tile is updated by creating an instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required