title: Display busyindicator in wpf application
body: <p>I have a BusyIndicator from the wpf extended toolkit and I'm running a function that takes a while to complete.  If I run the time consuming task in a separate thread, I get a NotSupportedException because I'm attemping to insert objects into an ObservableCollection from that different thread.  I don't really want to spend a lot of time refactoring the code, if possible... Is there a way that I can set the visibility of the indicator in a separate thread instead?</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>ThreadStart start = delegate()
    {
        System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =&gt;
            {
                IsBusy = true;
            }));
     };
  
  new Thread(start).Start();                                
  longRunningFunction();
  </code></pre>
  
  <p>This did not work for me either.</p>