title: Nested Resource Dictionary in separate library
body: <p>My question is very similar to this <a href="https://stackoverflow.com/questions/17750450/how-can-i-import-a-deep-hierarchy-of-merged-dictionaries-with-1-resourcedictiona">one</a></p>
  
  <p>I have a solution with a number of projects. The are two that are relevant: a class library that contains a WPF window and a project with all the WPF styles in it.  </p>
  
  <p><strong>Class Library with the window in Project 1</strong>  </p>
  
  <p>The Window's merged dictionary is something like:</p>
  
  <pre><code>  &lt;ResourceDictionary.MergedDictionaries&gt;
         &lt;ResourceDictionary Source="pack://application:,,,/StyleAssembly;component/CommonStyle.xaml"/&gt;
    &lt;/ResourceDictionary.MergedDictionaries&gt; 
  
              //other styles here
  </code></pre>
  
  <p>The CommonStyle.xaml in <strong>Project 2</strong>:</p>
  
  <pre><code>&lt;ResourceDictionary.MergedDictionaries&gt;
      &lt;ResourceDictionary Source="/Components/Type/CheckBox.xaml"/&gt;
  &lt;/ResourceDictionary.MergedDictionaries&gt;
  </code></pre>
  
  <p>That results in errors like:  </p>
  
  <blockquote>
    <p>{"Cannot locate resource 'components/type/checkbox.xaml'."}</p>
  </blockquote>
  
  <p>However, if I create a CommonStyle.xaml in Project 1 and reference the same control styles from Project 2 then it works.</p>
  
  <p>How do I make that highest level xaml file (CommonStyle.xaml) work from the Project 2?</p>