为什么显示提示时启动页面无法启动 [英] Why Launch Page can not be fired up when reminder is displayed
本文介绍了为什么显示提示时启动页面无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用下面的示例代码进行测试.我不知道出了什么问题.如果您能指出我在设置或使用 Reminder 时需要做什么,不胜感激.
1) ShowParams.xaml 已设置
2) 下面是添加提醒的代码:
<前>Uri navigationUri = new Uri("/ShowParams.xaml" + queryString, UriKind.Relative);提醒提醒 = new Reminder(name);提醒.标题 = titleTextBox.Text;提醒.内容 = contentTextBox.Text;提醒.BeginTime = beginTime;提醒.ExpirationTime = expireTime;提醒.RecurrenceType = 重复;提醒.NavigationUri = navigationUri;//向系统注册提醒.ScheduledActionService.Add(提醒);谢谢
解决方案
它有效.在玩过这个应用程序后,我意识到你需要关闭它才能让它工作.谢谢大家.
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
解决方案
It works. After playing around with the app, I realized you need to close it in order for it to work. Thank all.
这篇关于为什么显示提示时启动页面无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文