Windows Phone 7 Notifications / Pop / Toasts

If there is a way to display regular / Toast / Popup notification in Windows Phone 7, which is not Push Notification?

All I want to do is give the user a message when something happens ...

+4
source share
5 answers

I assume that you want to display something while your application is not running in foregorund. Because when your application runs in the foreground, you can do whatever you want.

Your application cannot run in the background, so in fact you do not have any means to call anything. This means that you really cannot display the message when somethien happens.

What happens on the phone, what do you need to notify the user? Isn't that due to hindsight?

two great example chapters on Windows Phone and Silverlight for Windows Phone at LearningWindosPhone.com . There is great Windows stuff for a mobile phone , and don't forget the Windows Phone Blog Develoeprs

+3
source

You can use MessageBox.Show () , although this creates a modal dialog box.

+2
source

If you want to display a notification while the application is not running (but when you are doing the wallpaper), I believe that this is what you want:

ShellToast toast = new ShellToast(); toast.Title = "My app"; toast.Content = "Hello from my app background task!"; toast.Show(); 

For some reason, this does not display anything if your application is already running. If you want to display a message, you can use MessageBox.Show () (if you are okay for the user to click OK), or you can use the Coding4Fun Tools referenced by Haider.

+1
source

It would be quite simple to reproduce the visual effect of the toast from your application. You can use a fixed height, canvas width width using the TextBlock control and animate its appearance using a storyboard.

0
source

How to associate a toast notification with a schedule on a Windows phone

0
source

Source: https://habr.com/ru/post/1306183/


All Articles