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
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| duration |
The amount of time the toast should display. |
This attribute can have one of the following values:
| No | None |
| 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. | string | No | None |
Child Elements
| Child Element | Description |
|---|---|
| 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