title: Set WPF Font size based on screen size
body: <p>I'd like to have a default font size that is based on the users screen resolution.
  ie if screen work area width is less than 1024 use font size 10 else use font size 14.
  Am currently using the "SystemParameters.WorkArea.Width" to determine the width</p>
  
  <p>I can set a global font size and have a converter to return a font size, but am really struggling to work out how to make it fire. ie. when the window size changes, make it check what the font size should be</p>
  
  <pre><code>&lt;Window.Resources&gt;
  
      &lt;local:SetFontSize x:Key="myConverter" /&gt;
  
      &lt;Style TargetType="{x:Type Control}" x:Key="baseStyle"&gt;
          &lt;Setter Property="FontSize" Value="14"  /&gt;
          &lt;Setter Property="FontFamily" Value="Calibri" /&gt;           
  
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>I have found the below event, but just can't seem to link the two together (although I might be going about this wrong way)</p>
  
  <pre><code>&lt;Window.Triggers&gt;
      &lt;EventTrigger RoutedEvent="SizeChanged"&gt;          
      &lt;/EventTrigger&gt;
  &lt;/Window.Triggers&gt;
  </code></pre>