Thank you for the clarification.
The reason why the breakpoint on manager.ShowAlert(alert)
is triggered first is because the CloseAllAlerts()
method has a default fading animation which causes a delay in the alert's closing. Here is the method definition:
var alerts =
.openedAlertsTotalHeight = 0;
You can ensure that the Closed
event handler is called before the ShowAlert
method by setting the bool value in Button_Click_2
sender, RoutedEventArgs e)
var alert = manager.GetAllAlerts().FirstOrDefault();
Please let me know if this approach works for you.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.