Tile Templates

Your live tile cannot contain arbitrary XAML (or HTML). Its appearance is tightly controlled by an XML template. With such a template, you choose one of several predefined layouts and, depending on the choice, you can specify a few lines of text and a few images. Although this means your customization possibilities are limited, it also means that it’s easy to give your app a live tile with a standard look-and-feel, including animations.

For example, Listing 24.1 contains a method that can be invoked at any time to update an app’s tile with hard-coded content. The call to CreateTileUpdaterForApplication returns a TileUpdater instance that exposes a variety of interesting behaviors. For now, this listing just calls its Update method ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.