title: set fontfamily from resources
body: <p>I have tried several different ways set to fontfamily of my textblock to a font that is in my resources.</p>
  
  <p>I must add the font family programatically and not based on xaml.</p>
  
  <p>I have to font added to my resources and in my solution explorer my font is located in..</p>
  
  <p>PROJECT NAME > Resource</p>
  
  <p>The name of my font is MYFONT.ttf</p>
  
  <p>i thought this would work but it didnt</p>
  
  <pre><code>BLOCK.FontFamily = new FontFamily("{StaticResource MYFONT}")
  BLOCK.FontFamily = new FontFamily("Resources/MYFONT.ttf")
  </code></pre>