Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在玩 Windows 8 SDK,我想创建一个在计时器结束时执行某些操作的应用程序。我发现当应用程序暂停时, DispatcherTimer 停止并在应用程序回到前台时恢复。但是,我也想在后台安排计时器更新。这个问题的首选解决方案是什么(在应用程序处于后台时为未来安排任务)?
我发现以下文章在使用时非常有用BackgroundTask
BackgroundTask
31 天的 Windows 8 | 第 12 天:后台任务
您可以使用后台任务。查看http://code.msdn.microsoft.com/windowsapps/Background-Task-Sample-9209ade9上的示例。