C#,Window Phone 7,Silverlight,如何在xaml.cs文件中设置倒计时。 [英] C#, Window Phone 7, Silverlight, How to set Countdown in a xaml.cs file.

查看:61
本文介绍了C#,Window Phone 7,Silverlight,如何在xaml.cs文件中设置倒计时。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个倒计时。也许它会倒数10秒到0秒。在事件发生后是否有任何可能的方法来设置它,它将一直开始计数10,9,8,7,6 ..然后当它达到0秒时,它会停止?



不知何故,我确实用C#格式搜索了这样的代码,但它在C#窗口手机7中没有用。因为引用++无法找到。不确定是否是我的错。请帮忙! 

Let say I want to set a countdown. Maybe it will countdown 10secs to 0 secs. Is there any possible ways to set it after an event happen, it will start counting 10, 9, 8,7, 6 .. all the way.. then when it hit 0 seconds, it will stop?

Somehow, i did search for such codes in C# form, but it didn't work in C# window phone 7..  because of the reference ++ can't be found. Not so sure whether is it my fault. Please help out! 

推荐答案

我怀疑这是一个xaml问题,甚至是Windows Phone或Silverlight问题,但万一我是'你错了,你应该在以下论坛之一发表你的问题:

I doubt that this is a xaml problem, or even a Windows Phone or Silverlight problem, but in case I'm wrong about that, you should post your questions in one of the following forums:

http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/threads

http://social.msdn.microsoft.com/Forums/en-US/wpf/线程

无论如何,可能没有必要检查那些论坛......你能否发布你遇到问题的代码,也许我们可以帮助你;弄清楚问题。

Anyway, it might not be necessary to check those forums just yet ... could you post the code that you're having problems with and maybe we can help you figure out the problem.


这篇关于C#,Window Phone 7,Silverlight,如何在xaml.cs文件中设置倒计时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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