O'Reilly logo

Windows Phone 8 Application Development Essentials by Tomasz Szostak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Toast notifications

Toast notifications are often used to inform users about things that apply to our application. It could be information about messages, invitations, and so on. We are going to create a simple method that shows a sample message, and after clicking, it goes directly to one of the pages in the application.

public static void ShowSettingsToast()
{
  var toastMessage = new ShellToast();
  toastMessage.Title = "Hello";
  toastMessage.Content = "Your app settings needs your attention";
  toastMessage.NavigationUri = new Uri("/Views/SettingsPage.xaml", UriKind.Relative);
  toastMessage.Show();
}

Implementation is very simple; it's just an initialization of the ShellToast object that contains Title, Content, and NavigationUri and that points to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required