Specifies text used in the toast template.
Element hierarchy
Syntax
<text id = integer
lang? = string />
Key
- ? optional (zero or one)
Attributes and Elements
Attributes
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| id |
The text element in the toast template that this text is intended for. If a template has only one text element, then this value is 1. The number of available text positions is based on the template definition. | integer | Yes | None |
| lang |
The target locale of the XML payload, specified as any defined BCP-47 language code such as "en-US" or "fr-FR". | string | No | None |
Child Elements
None.
Parent Elements
| Parent Element | Description |
|---|---|
| binding |
Specifies the toast template. Note that only one binding element can be included in a toast notification. |
Remarks
The body of the text element can be expressed in two ways:
- As a literal string; for instance, <text id="1">Hello world!</text>.
- As a string reference, using the "ms-resource" prefix; for instance, <text id="1"> ms-resource:hello</text>. When using the "ms-resource" prefix, the string identifier is referenced in the app's Resources.resjson (Windows Store app built for Windows using JavaScript) or Resources.resw file (C#/C++).
For more information, see Globalizing your tile: localization, scaling, and accessibility.
Requirements
|
Namespace |
http://schemas.microsoft.com/notifications/2012/toast.xsd |
|---|
Build date: 10/26/2012