c# - 在 Windows Phone 8.1 C# 中创建警报或提醒?

标签 c# windows-phone backgroundworker windows-phone-8.1

如何在通用项目中的 Windows Phone 8.1(通用应用程序)中使用提醒或闹钟

在Windows Phone 8中,您可以使用Microsoft.Phone.Scheduler命名空间添加提醒

        Reminder reminder = new Reminder("myreminder")
        {
            Title = " app reminder",
            Content = "Reminder !",
            BeginTime = DateTime.Now.AddHours(3),
            RecurrenceType = RecurrenceInterval.Daily,
            ExpirationTime = DateTime.Today.AddDays(30),
            NavigationUri = new Uri("Page1.xaml", UriKind.Relative)


        };
        ScheduledActionService.Add(reminder);

但是我如何在 Windows Phone 8.1 中使用它,或者为我提供另一种方法在 Windows Phone 8.1 中执行此操作。

如您所知,即使应用程序关闭,闹钟或提醒也会在后台运行。

最佳答案

在 Windows Phone 8.1 Store/XAML 应用中,第 3 方开发人员无法访问提醒和警报的 api。

WP8.1 - No Alarms & Reminders

关于c# - 在 Windows Phone 8.1 C# 中创建警报或提醒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24865354/

相关文章:

c# - 如何从 BackgroundWorker 返回列表以供 UI 线程中的下一行代码使用?

.net - 对于这个多线程问题该采取哪种方法?

c# - 如何在 WindowsPhone/Windows 8.1 上按下 Enter 键时隐藏软键盘?

c# - 包含多个条件的 LINQ 条件 Where 子句

windows-phone-7 - 在给定延迟后执行方法的简单方法?

C# - Windows 通用应用程序 - 图像源不起作用

c# - Windows Phone - 如何调出标准拨号盘?

c# - 生产应用程序的 PDB 文件和 "Optimize code"标志

c# - 在特定情况下将 bytearray 转换为字符串

c# - 将焦点设置到 PanoramaItem