title: Why does my busy indicator work when I click but not for the default button?
body: <p>Hard question to describe in one line so here's the detail.</p>
  
  <p>I asked a question before about showing a busy indicator in a WPF window whilst doing some long-running action. The original question is <a href="https://stackoverflow.com/questions/3725281/how-can-i-force-my-busy-indicator-to-display-wpf">here</a>.</p>
  
  <p>I followed some advice from a comment that suggested a kind of "DoEvents" style workaround. I know this isn't ideal but I only have a few hours to add busy indicators to about 50 windows and they all have lots of code on the UI thread that I do not have the time to modify to use background threads (I expect to be up all night sorting it without that additional headache).</p>
  
  <p>So, after I set the "Busy" property in my viewmodels I run the following DoEvents style code:</p>
  
  <pre><code>Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate {  }));
  </code></pre>
  
  <p>Now, when I click the button that starts the long-running process, the wait indicator appears as I need it to and all is well. However, the button in question is the default button in the window. If I press Enter, the same command binding is used and I can see in debug mode that the code is visited in exactly the same way. However, the busy indicator doesn't show.</p>
  
  <p>Can anyone suggest a workaround that will allow me to get some sleep tonight?</p>