title: WPF Performance using ResourceDictionary
body: <p>In my WPF application I have a lot of XAML, So I'm little confused in using ResourceDictionary in WPF, Does using it fasted my application or slow it down.  </p>
  
  <p><strong>EX:</strong> Lets say we have the following style for a TextBlock that we want to apply it to a lot of TextBlock's in my application:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type TextBlock}" x:Key="MainText"&gt;
              &lt;Setter Property="FontSize" Value="12" /&gt;
              &lt;Setter Property="Height" Value="20" /&gt;
              &lt;Setter Property="FontWeight" Value="Bold" /&gt;
              &lt;Setter Property="FontFamily" Value="Droid Arabic Kufi" /&gt;
              &lt;Setter Property="Foreground" Value="#FF383838"/&gt;
              &lt;Setter Property="HorizontalAlignment" Value="Center"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>What is the best approach for my application performance, Declared the style in ResourceDictionary like above and using it as following:</p>
  
  <pre><code>&lt;TextBlock Style="{StaticResource MainText}" Text="Hello"/&gt;
  </code></pre>
  
  <p>Or repeat the style (FontWeight, FontFamily, Foreground ... ) in each one?</p>
  
  <p>Thanks in advance</p>