title: Load control style from separate file in wpf
body: <p>I have the following style added to my Windows.Resources</p>
  
  <pre><code>&lt;Window.Resources&gt;
  ...
  &lt;!--A Style that extends the previous TextBlock Style--&gt;
  &lt;!--This is a "named style" with an x:Key of TitleText--&gt;
  &lt;Style BasedOn="{StaticResource {x:Type TextBlock}}"
     TargetType="TextBlock"
     x:Key="TitleText"&gt;
  &lt;Setter Property="FontSize" Value="26"/&gt;
  &lt;Setter Property="Foreground"&gt;
   &lt;Setter.Value&gt;
    &lt;LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"&gt;
      &lt;LinearGradientBrush.GradientStops&gt;
        &lt;GradientStop Offset="0.0" Color="#90DDDD" /&gt;
        &lt;GradientStop Offset="1.0" Color="#5BFFFF" /&gt;
      &lt;/LinearGradientBrush.GradientStops&gt;
    &lt;/LinearGradientBrush&gt;
    &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
  &lt;/Style&gt; 
  ...
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>I have a lot of those styles in my xaml code and I would like to save each component style to an extra file (not an external file).. for example all the styles related to TextBlocks should be in a file called <code>TextBlockStyles.xaml</code></p>
  
  <p>How would I do this in wpf?</p>
  
  <p>How do I link the style in my project ?</p>
  
  <p>Thanks in advance</p>