开发者

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

开发者 https://www.devze.com 2023-04-11 03:49 出处:网络
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.

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

精彩评论

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