title: Shared project with resource dictionary (xaml)
body: <p>I am looking for a way to share <code>ResourceDictionary</code> between projects.</p>
  <p>Adding new item to shared project doesn't offer resource dictionary. It can be created in other (main) project and dragged. But then I can't change its build options to <em>Page</em>:</p>
  <p><a href="https://i.stack.imgur.com/9kG4P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9kG4P.png" alt="" /></a><a href="https://i.stack.imgur.com/ytmKh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ytmKh.png" alt="enter image description here" /></a></p>
  <p>The idea is to load resource dictionary like this</p>
  <pre><code>var dictionary = new ResourceDictionary();
  dictionary.Source = new Uri(&quot;/WpfApplication91;component/Dictionary2.xaml&quot;, UriKind.Relative);
  </code></pre>
  <p>This is obviously fails currently with</p>
  <blockquote>
  <p>An exception of type 'System.IO.IOException' occurred in PresentationFramework.dll but was not handled in user code</p>
  <p>Additional information: Cannot locate resource 'dictionary2.xaml'.</p>
  </blockquote>
  <p>Any ideas?</p>