title: Silverlight cannot find resource in the same dictionary
body: <p>I have the following style defined in the ResourceDictionary of a Silverlight 4.0 application</p>
  
  <pre><code>&lt;Style x:Key="GridSplitterStyle" TargetType="sdk:GridSplitter"&gt;
      &lt;Setter Property="HorizontalAlignment" Value="Stretch" /&gt;
      &lt;Setter Property="VerticalAlignment" Value="Stretch" /&gt;
      &lt;Setter Property="Background" Value="Transparent" /&gt;
      &lt;Setter Property="Template" Value="{StaticResource GridSplitterTemplate}" /&gt;
  &lt;/Style&gt;
  
  &lt;ControlTemplate x:Key="GridSplitterTemplate" TargetType="sdk:GridSplitter"&gt;
      &lt;StackPanel Background="Transparent" Height="32"&gt;
          &lt;!-- ... --&gt;
      &lt;/StackPanel&gt;
  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>When I apply the style on my GridSplitter, the style is found and properly applied. However, when linking the Template property to the ControlTemplate defined in the same dictionary file, the following error comes up:</p>
  
  <blockquote>
    <p>Cannot find a Resource with the Name/Key GridSplitterTemplate</p>
  </blockquote>
  
  <p>How come Silverlight can find the style but not the template? They are located in the same file...</p>