EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

text

Specifies text used in the tile template.

Element hierarchy

<tile>
<visual>
<binding>
<text>

Syntax

<text id    = integer
      lang? = string />

Key

?   optional (zero or one)

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
id

The text element in the tile 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.

integerYesNone
lang

The target locale of the XML payload, specified as a BCP-47 language tags such as "en-US" or "fr-FR". The locale specified here overrides any other specified locale, such as that in binding or visual. If this value is a literal string, this attribute defaults to the user's UI language. If this value is a string reference, this attribute defaults to the locale chosen by Windows Runtime in resolving the string.

stringNoNone

 

Child Elements

None.

Parent Elements

Parent ElementDescription
binding

Specifies the tile template. Every notification should include one binding element for each supported tile size.

 

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 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/tile.xsd

 

 

표시:
© 2014 Microsoft