开发者

Fire an event every second

开发者 https://www.devze.com 2022-12-12 19:38 出处:网络
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.

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

精彩评论

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