Notification.Wpf icon indicating copy to clipboard operation
Notification.Wpf copied to clipboard

Close a notification in code?

Open HamidZaeri opened this issue 2 years ago • 3 comments

Hi

Is it possible for show() method to return Window so we can manually close a notification window?

Or any other workaround?

HamidZaeri avatar Jul 19 '22 15:07 HamidZaeri

there are some difficulties in implementation, I will think about how it can be done

Platonenkov avatar Jul 19 '22 17:07 Platonenkov

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()); }

pabcartou avatar Nov 07 '22 09:11 pabcartou