title: Fading effect on Splash sreen
body: <p>I am trying to make a fading effect on my splash screen, on a WPF application.
  The Opacity of the image object is initially 0. This code would modify the Opacity from 0 (min) to 1 (max), but the line img_waves.Opacity just doesn't work. The image opacity remains 0.</p>
  
  <pre><code>private void Splash_ContentRendered(object sender, EventArgs e)
      {
          System.Threading.Thread.Sleep(3000);
          for (double x = 0; x&lt;=1; x+=0.01d)
          { 
              System.Threading.Thread.Sleep(15);
              //MessageBox.Show(x.ToString());
              img_waves.Opacity = x;
          }
          this.Close();
      }
  </code></pre>
  
  <p>But, if I activate the line ´MessageBox.Show(x.ToString());´
  as you can see on this image:<img src="https://i.stack.imgur.com/UStzU.png" alt="Code is working"></p>
  
  <p>The code works, but I have to keep clicking on the message boxes.</p>
  
  <p>My ask is: Why? Why doesn't work without the MessageBox.Show?</p>