title: uri relative vs absolute
body: <p>I have some trouble with <strong>uri</strong> in my C# code</p>
  
  <p>This is working:</p>
  
  <pre><code>var uri = new Uri("d:/Programozas dotNet/Ugyfel/Ugyfel.ClientWpf/Skins/MainSkin.xaml");
  </code></pre>
  
  <p>But unfortunately non of these:</p>
  
  <pre><code>var uri = new Uri("/Skins/MainSkin.xaml", UriKind.Relative);
  var uri = new Uri("pack://application:,,,/Skins/MainSkin.xaml");
  var uri = new Uri("Ugyfel.ClientWpf;/Skins/MainSkin.xaml", UriKind.Relative);
  </code></pre>
  
  <p>IOException: Cannot locate resource 'skins/mainskin.xaml'.</p>
  
  <p>How can I use <strong>relative</strong> uri insted of <strong>absolute</strong>?</p>