commands

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

Attribute Description Data type Required Default value
scenario

The intended use of the notification.

This attribute can have one of the following values:

  • alarm
  • incomingCall
No None

Child Elements

Child Element Description
command

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

Parent Elements

Parent Element Description
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