title: Wpf Font Style Not Working in RunTime and don't show correct view of my font in Design Time
body: <p>I using a <strong>separate project</strong> for my styles a and i have some line of codes like this in it:</p>
  
  <pre><code>&lt;ResourceDictionary
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      &gt;
  
      &lt;Style x:Key="NazaninFont"  TargetType="Control"&gt;
          &lt;Setter Property="FontFamily" Value="pack://application:,,,/Extra/Fonts/#IRNazanin"/&gt;
      &lt;/Style&gt;
  
      ......
  
  &lt;/ResourceDictionary&gt; 
  </code></pre>
  
  <p>My another styles (like control effects and...) work well when i use my style key in the element like this:</p>
  
  <pre><code>Style="{ms:MyStyleRef ResourceKey=MyStyleKey}"
  </code></pre>
  
  <p>But When i use the following code in my <strong>Lable</strong> element</p>
  
  <pre><code>&lt;Label Style="{ms:MyStyleRef ResourceKey=NazaninFont}" x:Name="LabelRemainingSec" Content="{Binding RemainingSec}"/&gt;
  </code></pre>
  
  <p>I have:</p>
  
  <ul>
  <li>In Design Time >> The <code>FontFamily</code> is set on <strong>IRNazanin</strong> on the properties panel but <strong>have not correct font view in the designer</strong>!</li>
  </ul>
  
  <p>BUT</p>
  
  <ul>
  <li>
  In Run Time >> The <code>FontFamily</code> is set on <strong>Tahoma</strong> (Window font)</li>
  </ul>
  
  <hr>
  
  <p>Also i tested this way:</p>
  
  <p>I added a style base on my font styles in the separate project, in top of my Window, like this:</p>
  
  <pre><code>&lt;Style x:Key="NazaninFont" BasedOn="{ms:MyStyleRef ResourceKey=NazaninFont}" TargetType="Label"/&gt;
  </code></pre>
  
  <p>Then i use it in my Lable normaly:</p>
  
  <pre><code>&lt;Label Style="{StaticResource NazaninFont}" x:Name="LabelRemainingSec" Content="{Binding RemainingSec}"/&gt;
  </code></pre>
  
  <p>Result is same as previous way:</p>
  
  <p>In the <code>Design Time</code> in the <code>FontFamily</code> is on <strong>IRNazanin</strong> and have not correct font view in XAML designer! And in <code>Run Time</code> it is on <strong>Tahoma</strong></p>
  
  <p>What do you think about my problem? I think think my styles can not give the font path to the <code>Label</code> control correctly.</p>