开发者

Does WPF have a Timer control?

I can't seem to find it in the Toolbox.

I've did a Google search, and found: http://www.c-sharpcorner.com/UploadFile/mahesh/WPfTimer09292009090518AM/WPfTimer.aspx

However, I can't seem to add a reference to System.Windows.Threading because 开发者_如何学Goit isn't displayed as an available library.

I've even made sure to use the full .NET4 framework, and not the client framework.

Does WPF have a Timer control?

Any suggestion on what to try next?

Thank you.


No there is no timer control. You can for example use a DispatherTimer for this purpose.

It is defined in WindowsBase.dll, System.Windows.Threading is just the namespace of it.


It does,

it's System.Timers.Timer. It doesn't have any graphical component though.


Dim otimer As System.Timers.Timer


you can also find from System.Windows.Threading namespace's DispatcherTimer control

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜