title: Change label text at runtime in wpf C#
body: <p>I have one label named as <code>lblMsg</code>. </p>
  
  <p>I want to change it's content runtime dynamically.</p>
  
  <p>Below is the example of my code not the actual code. My for loop contains so many code and it takes approx 8 to 9 seconds on each loop. So it should be visible on UI.</p>
  
  <p>For ex.</p>
  
  <pre><code>for(int i=0;i&lt;=length;i++)
  {
      lblMsg.Content="Test"+i;
  }
  </code></pre>
  
  <p>But it is not working. Can any one help me with it?</p>