Subscribe to our YouTube Channel for more Videos

Scheduling Notification in Windows Phone – Reminders

In Windows Phone, one can display the Scheduling Notification dialog box using

  • Alarm
  • Reminders

The Scheduling Notification displays a dialog window with the message as well as buttons to perform actions on the notifications like dismiss or postpone.

In this Blog post, I will show you how to create a simple reminder

You can create a reminder in your Application using the Reminder Class and ScheduledActionService class in Windows Phone. It is defined in the name space Microsoft.Phone.Scheduler;

The Reminder Class inherits from the ScheduledNotification which in turn inherits from the Scheduled Action

public sealed class Reminder : ScheduledNotification

public abstract class ScheduledNotification : ScheduledAction

Create an instance of the Reminder class and set the Begin Time, Expiration Time (if any), Title and Content and then add it to the ScheduledActionService.

It is also necessary to check if the reminder with the same name is already to the ScheduledActionService, If yes, then we should first remove it and add the new one .

Reminder objReminder = ScheduledActionService.Find("testreminder") as Reminder;
if (objReminder != null)
objReminder = new Reminder("testreminder");
objReminder.BeginTime = DateTime.Now.AddSeconds(10);
objReminder.Title = "Article Time";
objReminder.Content = "Its time for Article";             
objReminder.NavigationUri = new Uri("/test.xaml",UriKind.Relative);

The Reminder class also exposes an property Navigation Uri that points to the page within the Application .

Scheduling Notification in Windows Phone - Reminders
Scheduling Notification in Windows Phone – Reminders


Scheduling Notification in Windows Phone - Reminders
Scheduling Notification in Windows Phone – Reminders


Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.