It works with the Microsoft.Toolkit.Uwp.Notifications NuGet package, as explained at
Send a local toast notification from a C# app
or
(tested with Windows App SDK 1.4, Windows 10 22H2, Unpackaged)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to use Toast notifications in Windows App SDK 1.4 (below) but I don't know how to create them, most of the tutorial codes I've seen on the internet are not the same, and although they all work, they have the same feature: "Creates a new window when the notification is clicked", why? I don't want to create a window, I want to wake up the window, or customize the event.
As well, I found out that I can put buttons into notifications, I tried it once and the buttons show up normally, but when I click on the button it creates a window, I don't want that, I want a specific event to be triggered when the button is pressed, is there a solution for that?
Lastly, I realized that this method in the picture is reporting an error, I think this is the method that manages what triggers when the button inside the notification is pressed, but since it's wrong, I can't be sure of its accuracy.
These are my issues, I hope you guys can help me out, thanks!(。・ω・。)
It works with the Microsoft.Toolkit.Uwp.Notifications NuGet package, as explained at
Send a local toast notification from a C# app
or
(tested with Windows App SDK 1.4, Windows 10 22H2, Unpackaged)