开发者

Where is System.Windows.Threading.DispatcherTimer?

开发者 https://www.devze.com 2022-12-14 14:58 出处:网络
Gotta be getting close to a long weekend.... I\'m trying to create a DispatchTimer. I found some sample code but can\'t run it due to a missing namespace.

Gotta be getting close to a long weekend.... I'm trying to create a DispatchTimer. I found some sample code but can't run it due to a missing namespace.

I have the namespace, Syste开发者_JAVA百科m.Windows.Threading, but in which assembly can I find it? I tried System, System.Windows... nada.

Thanks!


It is in System.Windows.Threading, but you need to be sure you are referencing the WindowsBase.dll assembly as well.


The msdn docs say it's in WindowsBase.dll . http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer.aspx

0

精彩评论

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

关注公众号