开发者

Why Launch Page can not be fired up when reminder is displayed

I used the sample code below for testing. I could not figure out what went wrong. Appreciate if you can point out what I need to do on setting up or using Reminder.

1) ShowParams.xam开发者_开发百科l is setup

2) Below is the code to add reminder:


Uri navigationUri = new Uri("/ShowParams.xaml" + queryString, UriKind.Relative);

            Reminder reminder = new Reminder(name);
            reminder.Title = titleTextBox.Text;
            reminder.Content = contentTextBox.Text;
            reminder.BeginTime = beginTime;
            reminder.ExpirationTime = expirationTime;
            reminder.RecurrenceType = recurrence;

            reminder.NavigationUri = navigationUri;

            // Register the reminder with the system.

            ScheduledActionService.Add(reminder);

Thanks


It works. After playing around with the app, I realized you need to close it in order for it to work. Thank all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜