ToastTemplateType enumeration

Applies to Windows and Windows Phone

Specifies the template to use in a toast notification.

Syntax


var value = Windows.UI.Notifications.ToastTemplateType.toastImageAndText01;

Attributes

[Version(0x06020000)]

Members

The ToastTemplateType enumeration has these members.

MemberValueDescription
ToastImageAndText01 | toastImageAndText010

A large image and a single string wrapped across three lines of text.

ToastImageAndText01 example
ToastImageAndText02 | toastImageAndText021

A large image, one string of bold text on the first line, one string of regular text wrapped across the second and third lines.

ToastImageAndText02 example
ToastImageAndText03 | toastImageAndText032

A large image, one string of bold text wrapped across the first two lines, one string of regular text on the third line.

ToastImageAndText03 example
ToastImageAndText04 | toastImageAndText043

A large image, one string of bold text on the first line, one string of regular text on the second line, one string of regular text on the third line.

ToastImageAndText04 example
ToastText01 | toastText014

A single string wrapped across three lines of text.

ToastText01 example
ToastText02 | toastText025

One string of bold text on the first line, one string of regular text wrapped across the second and third lines.

ToastText02 example
ToastText03 | toastText036

One string of bold text wrapped across the first and second lines, one string of regular text on the third line.

ToastText03 example
ToastText04 | toastText047

One string of bold text on the first line, one string of regular text on the second line, one string of regular text on the third line.

ToastText04 example

Remarks

  • Applies to Windows Phone

You can send any toast template to Windows Phone 8.1, but it will be rendered as a modified version of ToastText02, with no image, two text strings (both on the same line, the first string in bold), and the app's Square 150x150 logo. An example is shown here

Example phone toast

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Notifications
Windows::UI::Notifications [C++]

Metadata

Windows.winmd

See also

The toast template catalog
ToastNotificationManager.getTemplateContent
Toast notifications sample
Sending toast notifications from desktop apps sample
Toast XML schema
Toast notification overview
Quickstart: Sending a toast notification
Quickstart: Sending a toast push notification
Quickstart: Sending a toast notification from the desktop
Guidelines and checklist for toast notifications
How to handle activation from a toast notification
How to opt in for toast notifications
How to schedule a toast notification
How to enable desktop toast notifications through an AppUserModelID
Toast audio options
Tile and toast image sizes

 

 

Show:
© 2014 Microsoft. All rights reserved.