Windows 商店应用程序中的计时器在哪里? [英] Where is timer in a Windows store app?

查看:14
本文介绍了Windows 商店应用程序中的计时器在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 c# 中开发 Windows 应用商店应用程序时,我找不到计时器.它的替代/新名称/使用方式是什么?

I could not find the Timer when developing a Windows Store App in c#. What is the alternative /new name/way of use of it?

推荐答案

针对不同需求的不同计时器.大致...

Different timers for different needs. Roughly...

DispatcherTimer - 当您希望执行工作时在用户界面线程.

DispatcherTimer - When you want work to be executed on the UI thread.

ThreadPoolTimer - 当您想要工作时在后台线程上执行.

ThreadPoolTimer - When you want work to be executed on a background thread.

这篇关于Windows 商店应用程序中的计时器在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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