Creates TileUpdater objects used to change and update Start menu tiles. This class also provides access to the XML content of the system-provided tile templates so that you can customize that content for use in updating your tiles.
Syntax
var tileUpdateManager = Windows.UI.Notifications.TileUpdateManager;
Attributes
- MuseAttribute()
- StaticAttribute(Windows.UI.Notifications.ITileUpdateManagerStatics, NTDDI_WIN8)
- ThreadingAttribute(MTA)
- VersionAttribute(NTDDI_WIN8)
Members
The TileUpdateManager class has these types of members:
Methods
The TileUpdateManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| CreateTileUpdaterForApplication() | Creates and initializes a new instance of the TileUpdater, which lets you change the appearance of the calling app's tile. |
| CreateTileUpdaterForApplication(String) | Creates and initializes a new instance of the TileUpdater for a tile that belongs to another app in the same package as the calling app. The TileUpdater lets a developer change the appearance of that tile. |
| CreateTileUpdaterForSecondaryTile | Creates and initializes a new instance of the TileUpdater, which enables you to change the appearance of a secondary tile. The tile can belong to the calling app or any other app in the same package. |
| GetTemplateContent | Gets the XML content of one of the predefined tile templates so that you can customize it for a tile update. |
Remarks
This is a static factory class and requires no instantiation.
Examples
The following example shows GetTemplateContent used to retrieve the XML content of a tile template and CreateTileUpdaterForApplication to send the notification to the app's tile.
function sendTileTextNotification() { var Notifications = Windows.UI.Notifications; // Get an XML DOM version of a specific template by using getTemplateContent. var tileXml = Notifications.TileUpdateManager.getTemplateContent(Notifications.TileTemplateType.tileWideText03); // You will need to look at the template documentation to know how many text fields a particular template has. // Get the text attribute for this template and fill it in. var tileAttributes = tileXml.getElementsByTagName("text"); tileAttributes[0].appendChild(tileXml.createTextNode("Hello World!")); // Create the notification from the XML. var tileNotification = new Notifications.TileNotification(tileXml); // Send the notification to the calling app's tile. Notifications.TileUpdateManager.createTileUpdaterForApplication().update(tileNotification); }
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
See also
- App tiles and badges sample
- Quickstart: Sending a tile update
- Tile and tile notification overview
- The tile template catalog
- Guidelines and checklist for tiles
- How to schedule a tile notification
- How to set up periodic notifications for tiles
- Tiles XML schema
Build date: 12/4/2012