NotificationService.PredefinedNotificationTemplate Property

Gets or sets the template that defines the presentation of predefined notifications. This is a dependency property.

Namespace: DevExpress.Mvvm.UI

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public NotificationTemplate PredefinedNotificationTemplate { get; set; }
Public Property PredefinedNotificationTemplate As NotificationTemplate

Property Value

Type Description
DevExpress.Mvvm.UI.NotificationTemplate

An object specifing the presentation of predefined notifications.

Remarks

This property allows you to apply one of the following built-in templates to predefined notifications in your application.

Name Appearance Description
LongText PredefinedNotification_LongTextTemplate Accepts a value of the first parameter (text1) of the INotificationService.CreatePredefinedNotification method and displays it across all lines.
ShortHeaderAndLongText PredefinedNotification_ShortHeaderAndLongTextTemplate Accepts values of the first and second parameters (text1 and text2) of the INotificationService.CreatePredefinedNotification method and displays the first value across the first line and the second one across the second and third lines.
LongHeaderAndShortText PredefinedNotification_LongHeaderAndShortTextTemplate Accepts values of the first and second parameters (text1 and text2) of the INotificationService.CreatePredefinedNotification method and displays the first value across the first and second lines and the second one across the third line.
ShortHeaderAndTwoTextFields PredefinedNotification_ShortHeaderAndTwoTextFieldsTemplate Accepts values of the first, second and third parameters (text1, text2, text3) of the INotificationService.CreatePredefinedNotification method and displays them across the first, second and third lines respectively.
NOTE

The last parameter of the INotificationService.CreatePredefinedNotification method responsible for the notification's image (image) is accepted by all templates.

See Also