title: How to set the default font for a WPF application?
body: <p>I want to be able to define a font family for my WPF application. Preferably using a resource dictionary as a theme referenced from <code>App.xaml</code>. I've tried creating a <code>Style</code> as follows:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type Control}"&gt;
      &lt;Setter Property="FontFamily" Value="Segoe UI" /&gt;            
  &lt;/Style&gt;
  </code></pre>
  
  <p>But this doesn't work. Setting the type to <code>TextBlock</code> works for most controls but there are a few controls where this doesn't apply.</p>
  
  <p>I know you can set the font on a window and have all child controls of that window inherit the font. But I think any dialog windows will go back to the default font, which is not exactly what I want.</p>
  
  <p>Any ideas?</p>