I have to submit my WPF project tomorrow morning; it is running perfectly in VS 2010 but giving error in VS 2008 (.NET 3.5 in both case) using C#.
I am using a timer using Dispatcher.Invoke
but in VS 2008 it is giving error :
Error 163
The best overloaded method match forSystem.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate)
has some invalid argument.
The below code is giving the error:
Dispatcher.Invoke(new Action(() =>
{
// ANY ACTIONS HERE
.. some task
}), null);
The code must work in VS 2008.