I'm working on this Microsoft team's article on Sending a local tile notification. The article is showing some C# code but it is not describing where that code need to be added.
I created a UWP
app that has MainPage.xaml
, MainPage.xamlcs
, App.xaml
, App.xamlcs
files.
Question: Where the code in the above mentioned article needs to be added to test the notification in my UWP
app?
It seems you are a beginner, so I recommend you put the code in MainPage.xaml.cs
.
If you just want to test local tile notification, you can put the code in a Button
click event.
If you are creating a weather app or something alike, which needs to notify user every certain interval, you can put the code in a timer, like 30min.