Skip to main content

ToastNotificationsManager.TimedOut Event

Occurs when a notification lifetime expires.

Namespace: DevExpress.XtraBars.ToastNotifications

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Behavior")]
public event EventHandler<ToastNotificationEventArgs> TimedOut

Event Data

The TimedOut event's data class is ToastNotificationEventArgs. The following properties provide information specific to this event:

Property Description
NotificationID Gets the ID of a notification related to the current event.

Remarks

Each notification can only be displayed for a certain period of time, specified by the ToastNotification.Duration property. If an end-user clicks this notification during its lifetime, the ToastNotificationsManager.Activated event occurs. Otherwise, the TimedOut event fires and the notification is hidden. You can handle this event to repeatedly display important notifications as the code below shows.

private void toastNotificationsManager1_TimedOut(object sender, DevExpress.XtraBars.ToastNotifications.ToastNotificationEventArgs e) {
    toastNotificationsManager1.ShowNotification(e.NotificationID);
}
See Also