Share via


ToastTemplateType Enum

Definition

Specifies the template to use in a toast notification.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ToastTemplateType
Inheritance
ToastTemplateType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
ToastImageAndText01 0

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

ToastImageAndText02 1

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 2

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 3

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 4

A single string wrapped across three lines of text. ToastText01 example

ToastText02 5

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

ToastText03 6

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

ToastText04 7

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

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

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also