Windows 10 Notification WPF

Viewed 18050

I'm trying to figure out if it is possible through my WPF application, to access the built in notification service that exists in Windows 10. I'm using VS 2015 and c#. Also, is the toasternotification the same thing? They dont look like that anymore in Windows 10. If yes, Could you please guide me in the right direction to namespace etc?

Yes, I have searched the web and only found toasternotification for Win 7. And that is not what I'm looking for.

2 Answers

For future reference:

Here is described very well how to use new windows 10 toast notifications. And you don't need to install your app beforehand or set AppUserModelID. Works directly from Visual Studio (I mean debug mode) and simplest code looks like this:

new ToastContentBuilder()
    .AddText("Something copied to clipboard")
    .Show();

But don't forget to change your target platform in your *.csproj file (everything is described in the article).

<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
Related