title: Transparent window while loading contents
body: <p>Sadly, not a single question about this issue on stackoverflow. Well at least, none that I bumped into while searching.</p>
  
  <p>Anyway, when the program I'll be talking about is build. the first window that appears is the login. When the user enters correct login information the main window is shown. However, on the main window there are bunch of information that is collected from the internet.</p>
  
  <p>This causes the main window to stay transparent, as shown in picture [1] below, for some reasonable time. The information collected from the internet is consisting of some xml as well as data from a MySQL db.</p>
  
  <p>I have a Window_Loaded event that looks like;</p>
  
  <pre><code>    private void Window_Loaded(object sender, RoutedEventArgs e)
      {
          method1();
          method2(1);
          method3();
          .
          .
          .
          //method6();
      }
  </code></pre>
  
  <p>So, obviously when I cancel out certain methods and leave this event with fewer then the time, window stays transparent before going into it's normal state, gets smaller.</p>
  
  <p><img src="https://i.stack.imgur.com/QtR4J.png" /></p>
  
  <p>However, what I want to do is to have the window load normally and then maybe have loading indicators for informing the user that the content is being loaded.</p>
  
  <p>p.s I am using mahapps.metro controls.</p>
  
  <p>Thank you in advance</p>