title: Silverlight: Why can't silverlight see my xaml file referenced in MergedDictionary?
body: <p>I have a silverlight application with a number of styles defined in a seperate xaml file under the directory /Styles.
  My App.xaml looks like this:</p>
  
  <pre><code>&lt;Application.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="/Styles/Legend.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>Legend.xaml has its build action set to Content and 'Do Not Copy' as the copy to output directory setting.</p>
  
  <p>The message I'm getting in blend is:</p>
  
  <pre><code>An error occurred while finding the resource dictionary "/Styles/Legend.xaml"
  </code></pre>
  
  <p>Thanks in advance!</p>