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.
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();
This value is not null when the application is pinned to the Start screen and we have to check that we do not face the exception. The activeTile
object has the Update
method, which gets TileData
. TileData
will update our...