NotificationService.CreatePredefinedNotification(String, String, String, ImageSource) Method

Creates and returns a predefined notification with the specified header and body text and image.

Namespace: DevExpress.Mvvm.UI

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

Declaration

public INotification CreatePredefinedNotification(
    string text1,
    string text2,
    string text3,
    ImageSource image = null
)
Public Function CreatePredefinedNotification(
    text1 As String,
    text2 As String,
    text3 As String,
    image As ImageSource = Nothing
) As INotification

Parameters

Name Type Description
text1 String

The System.string value specifying the notification header.

text2 String

The System.String value specifying the notification's body text1.

text3 String

The System.String value specifying the notification's body text2.

Optional Parameters

Name Type Default Description
image ImageSource

null

An ImageSource object that represents the notification image.

Returns

Type Description
DevExpress.Mvvm.INotification

An DevExpress.Mvvm.INotification descendant with the with the specified header and body text and image.

Remarks

Structurally, the notification is represented by two main areas: Content and Image.

PredefinedNotification_Structure

The Content area layout depends on the template specified in the NotificationService.PredefinedNotificationTemplate property.

See Also