ToastTemplateType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the template to use in a toast notification.
public enum class ToastTemplateType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ToastTemplateType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ToastTemplateType
var value = Windows.UI.Notifications.ToastTemplateType.toastImageAndText01
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
ToastImageAndText01 | 0 | A large image and a single string wrapped across three lines of text. |
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. |
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. |
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. |
ToastText01 | 4 | A single string wrapped across three lines of text. |
ToastText02 | 5 | One string of bold text on the first line, one string of regular text wrapped across the second and third lines. |
ToastText03 | 6 | One string of bold text wrapped across the first and second lines, one string of regular text on the third line. |
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. |
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
Applies to
See also
- GetTemplateContent(ToastTemplateType)
- The toast template catalog
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för