binding

2 out of 3 rated this helpful - Rate this topic

Specifies the tile template.

Element hierarchy

<tile>
<visual>
<binding>

Syntax

<binding template  = "TileSquareImage" | "TileSquareBlock" | "TileSquareText01" | "TileSquareText02" | ...
         fallback? = string
         lang?     = string
         baseUri?  = anyURI
         branding? = "none" | "logo" | "name"
         addImageQuery? = boolean >

  <!-- Child elements -->
  ( image
  | text
  )*

</binding>

Key

?   optional (zero or one)
*   optional (zero or more)

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
addImageQuery

Set to "true" to allow Windows to append a query string to the image URI supplied in the tile notification. Use this attribute if your server hosts images and can handle query strings, either by retrieving an image variant based on the query strings or by ignoring the query string and returning the image as specified without the query string. This query string specifies scale, contrast setting, and language; for instance, a value of

"www.website.com/images/hello.png"

given in the notification becomes

"www.website.com/images/hello.png?ms-scale=100&ms-contrast=standard&ms-lang=en-us"

booleanNofalse
baseUri

A default base URI that is combined with relative URIs in image source attributes.

URINoms-appx:///
branding

The form that the tile should use to display the app's brand.

This attribute can have one of the following values:

  • none
  • logo
  • name
Nologo
fallback

A template to use if the primary template cannot be found, for use with backward compatibility.

stringNoNone
lang

The target locale of the XML payload, specified as a BCP-47 language code such as "en-US" or "fr-FR". The locale specified here overrides that in visual, but can be overriden by that in text. 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. The Remarks on visual apply to this attribute as well.

stringNoNone
template

One of the provided templates on which to base the tile. Typically, a developer should supply both a square and a wide format, each as a separate binding element. Valid entries are members of the tileTemplateType enumeration.

This attribute can have one of the following values:

  • TileSquareImage
  • TileSquareBlock
  • TileSquareText01
  • TileSquareText02
  • TileSquareText03
  • TileSquareText04
  • TileSquarePeekImageAndText01
  • TileSquarePeekImageAndText02
  • TileSquarePeekImageAndText03
  • TileSquarePeekImageAndText04
  • TileWideImageCollection
  • TileWideImageAndText01
  • TileWideImageAndText02
  • TileWideImage
  • TileWideBlockAndText01
  • TileWideBlockAndText02
  • TileWidePeekImageCollection01
  • TileWidePeekImageCollection02
  • TileWidePeekImageCollection03
  • TileWidePeekImageCollection04
  • TileWidePeekImageCollection05
  • TileWidePeekImageCollection06
  • TileWidePeekImageAndText01
  • TileWidePeekImageAndText02
  • TileWidePeekImage01
  • TileWidePeekImage02
  • TileWidePeekImage03
  • TileWidePeekImage04
  • TileWidePeekImage05
  • TileWidePeekImage06
  • TileWideSmallImageAndText01
  • TileWideSmallImageAndText02
  • TileWideSmallImageAndText03
  • TileWideSmallImageAndText04
  • TileWideSmallImageAndText05
  • TileWideText01
  • TileWideText02
  • TileWideText03
  • TileWideText04
  • TileWideText05
  • TileWideText06
  • TileWideText07
  • TileWideText08
  • TileWideText09
  • TileWideText10
  • TileWideText11
YesNone

 

Child Elements

Child ElementDescription
image

Specifies an image used in the tile template. The supplied image should match the size and shape requirements for the specific template or image within that template.

text

Specifies text used in the tile template.

 

Parent Elements

Parent ElementDescription
visual

Contains multiple binding child elements, each of which defines a tile.

 

Requirements

Namespace

http://schemas.microsoft.com/notifications/2012/tile.xsd

 

 

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.