title: WPF not updating textbox while in progress
body: <p>I have this code:</p>
  
  <pre><code>void wait(int ms)
  {
      System.Threading.Thread.Sleep(ms);
  }
  
  private void button1_Click(object sender, RoutedEventArgs e)
  {
      info.Text = "step 1";
      wait(1000);
      info.Text = "step 2";
      wait(1000);
      info.Text = "step 3";
      wait(1000);
      info.Text = "step 4";
      wait(1000);
  }
  </code></pre>
  
  <p>And problem is that textbox.text is updated after whole void button1_Click finished. It is not updated ON AIR  :( </p>
  
  <p>Please, How to do that?</p>