O'Reilly logo

Windows Phone 8 Application Development Essentials by Tomasz Szostak

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

Implementing tile notification

Live tiles were designed to improve user response to our application; users feel that our application thinks about them all the time because it updates its tile and shows some information. The clue is to make users feel integrated with the application even if it is not running.

Updating the application tile from code

As we know, we have several tile sizes and templates. Each tile size could present some information to the user. Depending on the tile template that we want to use, we can update the data. If our application is pinned to the Start screen, we can get the active tile for the application using the ShellTile API. Using the following line we get the default tile for the application:

var activeTile = ShellTile.ActiveTiles.FirstOrDefault(); ...

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