Silverlight 4 Equivalent to .NET Timer Control

2019-06-15 20:38发布

Basically I'm wanting to insert a dynamic clock in my project. Right now I'm using the dateTime control which is fine but it's static. I need the clock to change digits with each second. In c# there is a Timer control that I would be able to use to make this dynamic clock possible. However, in Silverlight 4 I have not been able to locate any kind of Timer Control whatsoever to use in building this dynamic clock.

I didn't know if I was just looking in the wrong place or if it's right under my nose and I'm just missing it or what. Also, I assume using a timer control would be the best, however if there's a better approach to this please let me know that as well.

2条回答
Evening l夕情丶
2楼-- · 2019-06-15 21:23

In case, you are interested in a working demo, you can try the solution from...

http://www.dotnetscraps.com/dotnetscraps/post/Silverlight-e28093-Create-a-binary-clock.aspx

Hope this helps!

查看更多
登录 后发表回答