Back to Devexpress

ToastNotificationsManager.TimedOut Event

windowsforms-devexpress-dot-xtrabars-dot-toastnotifications-dot-toastnotificationsmanager-a7ac7811.md

latest3.0 KB
Original Source

ToastNotificationsManager.TimedOut Event

Occurs when a notification lifetime expires.

Namespace : DevExpress.XtraBars.ToastNotifications

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public event EventHandler<ToastNotificationEventArgs> TimedOut
vb
<DXCategory("Behavior")>
Public Event TimedOut As EventHandler(Of ToastNotificationEventArgs)

Event Data

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

PropertyDescription
NotificationIDGets 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.

csharp
private void toastNotificationsManager1_TimedOut(object sender, DevExpress.XtraBars.ToastNotifications.ToastNotificationEventArgs e) {
    toastNotificationsManager1.ShowNotification(e.NotificationID);
}
vb
Private Sub toastNotificationsManager1_TimedOut(sender As Object, e As DevExpress.XtraBars.ToastNotifications.ToastNotificationEventArgs)
    toastNotificationsManager1.ShowNotification(e.NotificationID)
End Sub

See Also

Duration

Activated

Toast Notification Manager

ToastNotificationsManager Class

ToastNotificationsManager Members

DevExpress.XtraBars.ToastNotifications Namespace