commands
Collapse the table of content
Expand the table of content

commands

Applies to Windows and Windows Phone

Specifies that the toast notification is being used to indicate an incoming call or an alarm, with appropriate commands associated with each scenario.

Element hierarchy

<toast>
<commands>

Syntax

<commands scenario? = "alarm" | "incomingCall" >

  <!-- Child elements -->
  command*

</commands>

Key

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

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
scenario

The intended use of the notification.

This attribute can have one of the following values:

  • alarm
  • incomingCall
NoNone

 

Child Elements

Child ElementDescription
command

Specifies a scenario-associated button shown in a toast. The scenario is specified in the parent commands element.

 

Parent Elements

Parent ElementDescription
toast

Base toast element, which contains at least a single visual element.

 

See also

Alarm notifications sample

Requirements

Namespace

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

 

 

Show:
© 2016 Microsoft