Hello,
i use ToastNotifications in my C# Application.
Using the Microsoft.Toolkit.Uwp.Notifications NuGet Package.
Content is build with ToastContentBuilder.
I added the ToastNotificationManagerCompat.OnActivated event in my Application_Startup Method.
ToastNotificationManagerCompat.OnActivated += toastArgs =>
In the ToastContentBuilder i use e.g.
.AddArgument("action", "startNow")
.SetBackgroundActivation())
for ToastButtons to be able to react to a specific button click.
Everything works fine.
The only action which does not trigger this event is when i click exactly on the "x" Symbol right behind the application name to close the Notification.
Clicking the buttons trigger this event, clicking anywhere in the ToastNotification triggers the event.
Only whe i click right on the "x", i do cannot reach this event.
Do you have an idea how i can react on clicking "x" ?
Thank you and best regards
Emanuel
What I have tried:
I set the
.SetBackgroundActivation()
method for my ToastContentBuilder instance
and additionally for the ToastButton variables.