Secondary Tiles

As mentioned in Chapter 6, “App Lifecycle,” an app can have any number of additional tiles known as secondary tiles. These are meant to jump to a specific part or mode of the app. For example, the MSN Money app enables the user to pin individual stocks. The user gets one secondary tile per stock, and clicking one brings up a page populated with data specific to that stock. By default, secondary tiles are roamed to the user’s other devices.

You do this with the SecondaryTile class in the Windows.UI.StartScreen namespace. After you construct one, you can set a number of properties (or use an overloaded constructor that sets the same values). Most important are the TileId and Arguments properties, because this information gets passed ...

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.