Silverlight 4 相当于 .NET 计时器控件

发布于 2024-09-10 12:54:35 字数 237 浏览 0 评论 0原文

基本上我想在我的项目中插入一个动态时钟。现在我正在使用 dateTime 控件,它很好,但它是静态的。我需要时钟每秒改变数字。在 c# 中,有一个 Timer 控件,我可以使用它来使这个动态时钟成为可能。然而,在 Silverlight 4 中,我无法找到任何类型的计时器控件来构建这个动态时钟。

我不知道我是否只是看错了地方,或者它就在我眼皮子底下而我只是错过了还是什么。另外,我认为使用计时器控件是最好的,但是如果有更好的方法,也请告诉我。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文