title: DynamicResource not working
body: <p>I have a CustomControl library with a control defined as follows :</p>
  
  <pre><code>&lt;ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:WpfCustomControlLibrary1"&gt;
  
  &lt;SolidColorBrush x:Key="Test"
                   Color="Red" /&gt;
  
  &lt;Style TargetType="{x:Type local:CustomControl1}"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type local:CustomControl1}"&gt;
                  &lt;Border Background="{StaticResource Test}" /&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Which works fine.</p>
  
  <p>However, if I change 'StaticResource' to 'DynamicResource', the red is no longer picked up?</p>
  
  <p>Why is this?</p>