ToastNotification(Object, Image, String, Image, String, Image, String, String, String, String, String, ToastNotificationSound, ToastNotificationDuration, Nullable<DateTimeOffset>, AppLogoCrop, ToastNotificationTemplate) Constructor
Initializes a new toast notification and specifies its content that matches the Generic template.
Namespace: DevExpress.XtraBars.ToastNotifications
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public ToastNotification(
object id,
Image image,
string imagePath,
Image appLogoImage,
string appLogoImagePath,
Image heroImage,
string heroImagePath,
string header,
string body,
string body2,
string attributionText,
ToastNotificationSound sound,
ToastNotificationDuration duration,
DateTimeOffset? displayTimestamp,
AppLogoCrop appLogoImageCrop,
ToastNotificationTemplate template
)
#Parameters
Name | Type | Description |
---|---|---|
id | Object | An object that is a unique notification ID. |
image | Image | The main notification image. |
image |
String | A String value that is the path to the main notification image. |
app |
Image | The application logo image. |
app |
String | A String value that is the path to the application logo image. |
hero |
Image | The image docked to the notification’s top, 364x180 pixels at 100% scale. |
hero |
String | A String value that is the path to the hero image. |
header | String | A String value that is the header text for this notification. |
body | String | A String value that is the primary notification text. |
body2 | String | A String value that is the secondary notification text. |
attribution |
String | A String value that is the attribution text, displayed to the right of the application name. |
sound | Toast |
A Toast |
duration | Toast |
A Toast |
display |
Nullable<Date |
A Date |
app |
DevExpress. |
An App |
template | Toast |
A Toast |