title: Make all windows WindowStartupLocation default to CenterScreen
body: <p>I had asked <a href="https://stackoverflow.com/questions/16530184/apply-style-for-buttons-in-all-windows-in-wpf">this question</a> the other day. Now, I'm trying to apply the same practice to make all my <code>windows</code>, and have <code>CenterScreen</code> as it's default <code>WindowStartupLocation</code>. I've tried typing:</p>
  
  <pre><code>&lt;Style TargetType="Window"&gt;
      &lt;Setter Property="WindowStartupLocation"&gt;
  
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>However, apparently <code>WindowStartupLocation</code> isn't a supported property for this. Is there a way to accomplish this that I'm missing, or am I going to have to manually change this for all <code>windows</code>?</p>