title: The resource could not be resolved (VS 2010 RC)
body: <p>I've got WPF 4 app that has a number of UserControls that share styles in their child controls. So I'm creating a number of styles in my App.xaml as . For example:</p>
  
  <pre><code>&lt;Style x:Key="ViewTitle" TargetType="{x:Type Border}"&gt;
      &lt;Setter Property="BorderBrush" Value="LightGray" /&gt;
      &lt;Setter Property="HorizontalAlignment" Value="Stretch" /&gt;
      &lt;Setter Property="VerticalAlignment" Value="Top" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Then in my UserControls I use StaticResource to reference them, for example:</p>
  
  <pre><code>&lt;Border Style="{StaticResource ViewTitle}"&gt;
      &lt;TextBlock Margin="6,3,4,5" FontSize="18" FontWeight="Bold" Foreground="White" HorizontalAlignment="Left" Text="Host Management" /&gt;
  &lt;/Border&gt;
  </code></pre>
  
  <p>This all works fine. The problem is the Visual Studio 2010 RC is putting a blue squiggly under the StaticResource reference and saying: The resource "ViewTitle" could not be resolved.</p>
  
  <p>What's up with that? Is this a problem with Visual Studio or am I doing something wrong?</p>