title: Maximize WPF Window on the current screen
body: <p>I have a windowless wpf application, whenever I set the window state as maximized it maximizes it on the primary display.</p>
  
  <p>What I would like to do is have it maximize on which ever display the application is running.</p>
  
  <p>So any idea how I would do this?</p>
  
  <p>My code at the moment is just</p>
  
  <pre><code>private void titleBarThumb_MouseDoubleClick(object sender, MouseButtonEventArgs e)
          {
              if (this.WindowState == System.Windows.WindowState.Normal)
              {
                  this.WindowState = System.Windows.WindowState.Maximized;
              }
              else
              {
                  this.WindowState = System.Windows.WindowState.Normal;
              }
          }
  </code></pre>