toast

2 out of 5 rated this helpful - Rate this topic

Base toast element, which contains a single visual element.

Element hierarchy

<toast>

Syntax

<toast launch?   = string
       duration? = "long" | "short" >

  <!-- Child elements -->
  visual,
  audio?

</toast>

Key

?   optional (zero or one)

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
duration

The amount of time the toast should display.

This attribute can have one of the following values:

  • long
  • short
NoNone
launch

A string that is passed to the application when it is activated by the toast. The format and contents of this string are defined by the app.

stringNoNone

 

Child Elements

Child ElementDescription
audio

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

visual

Contains a single binding element that defines a toast.

 

Parent Elements

This outermost (document) element may not be contained by any other elements.

Requirements

Namespace

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

 

 

Build date: 10/26/2012

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