title: WPF: Open new window in WPF
body: <p>I am trying to make a little Program were I want to open a new Window in WPF with a Button. It goes, but it like the mainWindow is closed and then another window is opening and I want ,that it goes "fluent",so you think that it is one window..
  This is the code that I wrote for it:</p>
  
  <pre><code>private void Button_Click(object sender, RoutedEventArgs e)
      {
          Window1 w = new Window1();
          this.Hide();
          w.Show();
      }
  </code></pre>
  
  <p>How would you do it?</p>