title: URI prefix is not recognized when setting the source of a resourcedictionary
body: <blockquote>
    <p>The URI prefix is not recognized</p>
  </blockquote>
  
  <p>I am getting the above error message in a <code>System.NotSupportedException</code>.   </p>
  
  <p>This line is used to set the source of a <code>ResourceDictionary</code>:</p>
  
  <pre><code>view.Source = new Uri("/DA.EasyTeach.Math;component/View.xaml", UriKind.RelativeOrAbsolute);
  </code></pre>
  
  <p>This is a snip of my file structure:<br>
  <a href="https://i.stack.imgur.com/7lVgu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7lVgu.png" alt="enter image description here"></a></p>
  
  <p><strong>View.xaml</strong> has a <strong>Build Action</strong> of <em>Resource</em>.</p>