title: Windows Phone, loading resources from directory
body: <p>I've got the following folder structure in the project:</p>
  
  <pre><code>Style
      MainStyles.xaml
  MainPage.xaml
  </code></pre>
  
  <p>Inside MainPage.xaml I try to load resources from MainStyles:</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="Style\MainStyles.xaml" /&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>However, I get the following error message:</p>
  
  <pre><code>WinRT information: Failed to assign to property '%0'. [Line: 13 Position: 37]
  
  Additional information: The text associated with this error code could not be found.
  </code></pre>
  
  <p>Line 13 and position 37 is the exact place of <code>Source="...</code>. If I move resources to the same directory as MainPage and remove the directory, everything works.</p>
  
  <p>By the way, Visual Studio designer does not complain about lacking resources and use them correctly.</p>
  
  <p>What am I doing wrong?</p>