Saturday, May 11, 2013

Setting Reminder in Windows Phone Application

We have already seen how to set Alarm in Windows Phone. Please follow this link to read my article. Today, we would see how to set reminders in Windows Phone application. Its pretty much same as we did setting up Alarm in Windows Phone.

1) To start with, we would create windows application.

2) Then we need to add the following namespace in the code behind
using Microsoft.Phone.Scheduler

3) Below are the reminder properties that are available in Reminder class

  • Content - Message to be displayed when reminder triggers
  • Title - Title of the Reminder screen
  • BeginTime - Time when reminder would be triggered
  • ExpirationTime - End time of the reminder
  • NavigateURI - URL of the page when anyone clicks on the reminder screen
4) Below is the code for the same

            var Myremider = new Reminder("MyReminder");
            Myremider.Title = "My Reminder";
            Myremider.Content = "Reminder Application";
            Myremider.BeginTime = DateTime.Now.AddMinutes(1);
            Myremider.ExpirationTime = DateTime.Now.AddMinutes(10);
            Myremider.NavigationUri =new Uri( "",UriKind.Relative);


Hope this article of mine would give you some basic knowledge of setting reminder in windows phone.

No comments:

Post a Comment