Back to Devexpress

ToastNotification.Template Property

windowsforms-devexpress-dot-xtrabars-dot-toastnotifications-dot-toastnotification-88b80c7f.md

latest4.4 KB
Original Source

ToastNotification.Template Property

Gets or sets the template currently applied to this ToastNotification.

Namespace : DevExpress.XtraBars.ToastNotifications

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ToastNotificationTemplate.Text01)]
[DXCategory("Data")]
public ToastNotificationTemplate Template { get; set; }
vb
<DefaultValue(ToastNotificationTemplate.Text01)>
<DXCategory("Data")>
Public Property Template As ToastNotificationTemplate

Property Value

TypeDefaultDescription
ToastNotificationTemplateText01

A ToastNotification enumerator value that specifies the template currently applied to this ToastNotification.

|

Available values:

NameDescription
ImageAndText01

An image and a single text string wrapped across a maximum of three lines of text.

| | ImageAndText02 |

An image, one string of bold header text on the first line, one string of regular body text wrapped across the second and third lines.

| | ImageAndText03 |

An image, one string of bold header text wrapped across the first and second lines, one string of regular body text on the third line.

| | ImageAndText04 |

An image, one string of bold header text on the first line, two strings of regular body text on the second and third lines.

| | Text01 |

A single text string wrapped across a maximum of three lines of text.

| | Text02 |

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

| | Text03 |

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

| | Text04 |

One string of bold header text on the first line, two strings of regular body text on the second and third lines.

| | Generic |

A Windows 10-inspired template that allows you to create complex layouts using an XML-based mark-up.

|

Remarks

The Template property allows you to choose one of eight predefined templates for your ToastNotification objects. Templates specify which of notification elements (ToastNotification.Image, ToastNotification.Header, ToastNotification.Body, ToastNotification.Body2) are visible. Refer to the Toast Notification Manager topic to learn more about available ToastNotification templates.

Implements

Template

See Also

Image

Header

Body

Body2

Toast Notification Manager

ToastNotification Class

ToastNotification Members

DevExpress.XtraBars.ToastNotifications Namespace