title: WPF Wait Cursor With BackgroundWorker Thread
body: <p>I want to show the hourglass cursor and disable the window while a BackgroundWorker process runs in another thread.</p>
  
  <p>This is what I'm doing:</p>
  
  <pre><code>Private Sub MyButton_Click(...)
      Dim box As New AnotherWpfWindow()
      box.Owner = Me
      ...
      box.ShowDialog()
      If (box.DialogResult.GetValueOrDefault = True) Then
          Me.IsEnabled = False
          Me.Cursor = Cursors.Wait
          MyBackgroundWorker.RunWorkerAsync()
      End If
  End Sub
  
  Private Sub MyBackgroundWorker_RunWorkerCompleted(...)
      UpdateInterface()
      Me.IsEnabled = True
      Me.Cursor = Cursors.Arrow
  End Sub
  </code></pre>
  
  <p>The window becomes disabled like I want, but the cursor remains an arrow.  How can I make it the Wait cursor?</p>
  
  <p>It seems to work for <a href="https://stackoverflow.com/users/31221/vg1890">vg1890</a> according to this question:  <a href="https://stackoverflow.com/questions/273809/disabling-all-but-one-control-in-a-wpf-window">Disabling all but one control in a WPF window</a></p>