WP7 Invalid cross-thread access - ScheduledTaskAgent WP7 Invalid cross-thread access - ScheduledTaskAgent multithreading multithreading

WP7 Invalid cross-thread access - ScheduledTaskAgent


Use the Dispatcher to execute the code on the UI thread instead on a background thread:

Deployment.Current.Dispatcher.BeginInvoke(()=>    {          fontForeground  = new SolidColorBrush(Colors.White);         ...           });