title: WPF Cannot locate resource
body: <p>I have a resource file and two views. This views use a resource file</p>
  
  <pre><code>    &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="/Dictionary1.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>And it will work while i dont put one view to the another. In this case i get this error</p>
  
  <blockquote>
    <p>Cannot locate resource 'dictionary1.xaml'</p>
  </blockquote>
  
  <p>How to fix it?</p>