NotificationService.CreatePredefinedNotification(String, String, String, Object, String) Method
Creates and returns a predefined notification with the specified header and body text and image.
Namespace: DevExpress.Mvvm.UI
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
public INotification CreatePredefinedNotification(
string text1,
string text2,
string text3,
object image = null,
string id = null
)
Parameters
Name | Type | Description |
---|---|---|
text1 | String | The notification header. |
text2 | String | The notification’s body text1. |
text3 | String | The notification’s body text2. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
image | Object | null | The notification image. |
id | String | null | The notification identifier. |
Returns
Type | Description |
---|---|
DevExpress.Mvvm.INotification | An |
Remarks
Structurally, the notification is represented by two main areas: Content
and Image
.
The Content
area layout depends on the template specified in the NotificationService.PredefinedNotificationTemplate property.
When multiple native Windows notifications are displayed simultaneously, the optional Id
parameter of the CreatePredefinedNotification
method allows the service to identify a specific notification that the user interacts with. NotificationActivator passes the Id
value to the arguments parameter of the OnActivate
method.