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

雨燕双飞 提交于 2020-01-17 01:20:10

问题


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.xaml 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


回答1:


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



来源:https://stackoverflow.com/questions/7683914/why-launch-page-can-not-be-fired-up-when-reminder-is-displayed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!