开发者

Fire an event every second

Quick question:

I need an event that fires every second, just like the timer1_timer() event of VB6. I'm using VB开发者_C百科9/Silverlight, creating a small sidebar gadget.

Thanks in advance~


A good alternative to the DispatchTimer is the Storyboard timer:

http://blogs.silverlight.net/blogs/msnow/archive/2008/07/09/storyboard-versus-dispatchertimer-for-animation-and-game-loops.aspx


Use Threads and Timers:

See: http://blogs.msdn.com/silverlight_sdk/archive/2008/03/27/make-a-silverlight-timer-silverlight-2.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜