Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ToastNotificationsManager.TimedOut Event

Occurs when a notification lifetime expires.

Namespace: DevExpress.XtraBars.ToastNotifications

Assembly: DevExpress.XtraBars.v24.2.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