TileUpdateManager.GetTemplateContent(TileTemplateType) TileUpdateManager.GetTemplateContent(TileTemplateType) TileUpdateManager.GetTemplateContent(TileTemplateType) TileUpdateManager.GetTemplateContent(TileTemplateType) TileUpdateManager.GetTemplateContent(TileTemplateType) Method

Definition

Gets the XML content of one of the predefined tile templates so that you can customize it for a tile update.

Note

When this method is called on a Windows 8 system, it returns a version 1 template. When this method is called on a Windows 8.1 system, it returns a version 2 template. However, if an app specifies Windows 8 compatibility in its manifest, this method returns a version 1 template.

public : static XmlDocument GetTemplateContent(TileTemplateType type)
static XmlDocument GetTemplateContent(TileTemplateType type) const;
public static XmlDocument GetTemplateContent(TileTemplateType type)
Public Shared Function GetTemplateContent(type As TileTemplateType) As XmlDocument
var xmlDocument = Windows.UI.Notifications.TileUpdateManager.getTemplateContent(type);

Parameters

type
TileTemplateType TileTemplateType TileTemplateType

The name of the template.

Returns

The object that contains the XML.

Examples

The following example shows GetTemplateContent used to retrieve the XML content of a tile template.


var tileTemplate = Windows.UI.Notifications.TileTemplateType.tileWide310x150Text03;
var tileXml = Windows.UI.Notifications.TileUpdateManager.getTemplateContent(tileTemplate);

Remarks

You can use Document Object Model (DOM) manipulation functions to customize the template content for use in a TileNotification update that you will send to the tile through the TileUpdater that you create through the other methods of this class.

See tile schema for an explanation of tile elements and attributes.

See also