title: Setting global font family
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3145511/how-to-set-the-default-font-for-a-wpf-application">How to set the default font for a wpf application?</a>  </p>
  </blockquote>
  
  
  
  <p>Coming from a web development background I often get mixed up on how to assign styles to my controls. What I'd like to do is set a global font family for the <em>entire</em> application.</p>
  
  <p>In my <code>App.xaml</code> file I have the following</p>
  
  <pre><code>    &lt;Style TargetType="{x:Type Window}"&gt;
          &lt;Setter Property="FontFamily" Value="Helvetica, Arial" /&gt;
          &lt;Setter Property="FontSize" Value="13" /&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>I've tried changing the target type to <code>Control</code> but that's not doing anything. I would expect that since everything technically lives in a <code>Window</code> control that everything would work as expected.</p>
  
  <p>Turns out the <code>TextBlock</code> control doesn't inherit from <code>Control</code>. I'm assuming that's most of the problem because 90% of my text is in <code>TextBlock</code> form.</p>
  
  <p>In CSS I would do something like this:</p>
  
  <pre><code>body {
      font-family: Helvetica, Arial;
      font-size: 13px;
      }
  </code></pre>