I am writing a WPF(MVVM) application that would run a process in a background thread.
Here is the particualr method that is running on a different thread than the UI thread.
Code:
private void ExecuteAsync() { IsRunning = true; for (int i = 0; i < 1000; i++) { App.Current.Dispatcher.Invoke(DispatcherPriority.Normal, new Action( () => TheTextCollection.Add(string.Concat(string.Format("{0}
Leave a comment: