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, System.Windows.Threading, but in which assembly can I find it? I tried System, System.Windows... nada.
Thanks!
You cannot dispose DispatcherTimer object. It doesn't implement IDisposable interface. You cannot explicit kill (free, destroy) objects in managed world. If you don't need the timer object any more, disable it and set reference to it to null.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With