toast schema

3 out of 9 rated this helpful - Rate this topic

Elements used to define a toast notification. They specify the template, images, audio, and text used to compose the toast content, branding specifics, and language information.

These elements and their attributes are manipulated through Document Object Model (DOM) manipulation functions to customize the toast content.

To define the content for a toast, you can use ToastNotificationManager.getTemplateContent to get a toast template that can be modified.

To examine the content of an existing toast, use ToastNotification.content to get the current contents.

The following table lists all of the elements in this schema, sorted alphabetically by name.

ElementDescription
audio

Specifies a sound to play when a toast notification is displayed. This element also allows you to mute any toast notification audio.

binding

Specifies the toast template. Note that only one binding element can be included in a toast notification.

image

Specifies an image used in the toast template.

text

Specifies text used in the toast template.

toast

Base toast element, which contains a single visual element.

visual

Contains a single binding element that defines a toast.

 

 

 

Build date: 10/26/2012

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