WP7 +的后台进程 [英] Background processes for WP7+

查看:66
本文介绍了WP7 +的后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在后台运行我的秒表。当屏幕被锁定或应用程序被推到后台时,我需要它来继续计数/处理。我知道调度任务在后台运行,但他们对处理信息没有任何作用,因为我知道这是
。谢谢你的任何想法。

Im trying to run my stopwatch in the background. When the screen is locked or the app is pushed to the background, I need it to keep counting/processing. Im aware that the scheduledtasks run in the background, but they do nothing for processing info as far as I know. Thanks for any ideas.

推荐答案

你需要用秒表做什么?  (...将如何使用?)

What do you need to do with the stopwatch?  (...how will it be used?)

如果您只需要跟踪已用时间,您可以保存开始时间的记录并从当前时间减去你想要显示经过的时间。

If you just need to keep track of the elapsed time you could save a record of the start time and subtract that from the current time when you want to show the elapsed time.


这篇关于WP7 +的后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆