Federerer / Notifications.Wpf

Toast notifications for WPF
MIT License
657 stars 142 forks source link

Close a notification #22

Closed sadri31000 closed 3 years ago

sadri31000 commented 3 years ago

Hello, Is there a way to close a shown notification ? from another button from example thx

mxmissile commented 3 years ago

Looking through the source code, there is nothing that would enable this. However, it looks very simple to add, in theory you could add a Show() overload that returns the Window object, then call Close() on that. For example after adding the overload you could:

var window = _notificationManager.Show(...);
window.Close();
sadri31000 commented 3 years ago

Hello, yes thank you for quick response