Notification.Wpf
Notification.Wpf copied to clipboard
Close a notification in code?
Hi
Is it possible for show()
method to return Window so we can manually close a notification window?
Or any other workaround?
there are some difficulties in implementation, I will think about how it can be done
I'm using this and would be nice to have a function to close notifications.
I am also interested in a method to close individual notifications. Anyway, if you want to close all the notifications, you can do this:
public static void CloseAllNotifications() { App.Current.Windows.OfType<NotificationsOverlayWindow>().ToList().ForEach(x => x.Close()); }