Skip to content

Close a notification in code? #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HamidZaeri opened this issue Jul 19, 2022 · 3 comments
Open

Close a notification in code? #48

HamidZaeri opened this issue Jul 19, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@HamidZaeri
Copy link

Hi

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

Or any other workaround?

@Platonenkov
Copy link
Owner

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

@Platonenkov Platonenkov added the good first issue Good for newcomers label Jul 19, 2022
@RaidentaylorFilipeLeite85

I'm using this and would be nice to have a function to close notifications.

@pabcartou
Copy link

pabcartou commented Nov 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants