windowsforms-devexpress-dot-xtrabars-dot-toastnotifications-dot-toastnotificationsmanager-a7ac7811.md
Occurs when a notification lifetime expires.
Namespace : DevExpress.XtraBars.ToastNotifications
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public event EventHandler<ToastNotificationEventArgs> TimedOut
<DXCategory("Behavior")>
Public Event TimedOut As EventHandler(Of ToastNotificationEventArgs)
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. |
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);
}
Private Sub toastNotificationsManager1_TimedOut(sender As Object, e As DevExpress.XtraBars.ToastNotifications.ToastNotificationEventArgs)
toastNotificationsManager1.ShowNotification(e.NotificationID)
End Sub
See Also
ToastNotificationsManager Class