title: Relative Uri in WPF Translates into Wrong Absolute Directory
body: <p>I have a custom control with property of type Uri. When I set this Uri to a relative path <code>"InterfaceImages/Wait.gif"</code>, I would expect it to translate into the current directory when I use it to open that file. The expected directory would look something like this:</p>
  
  <pre><code>C:\Users\MyUsername\Documents\Visual Studio 2012\Projects\MySolution\MyProject\InterfaceGraphics\Wait.gif
  </code></pre>
  
  <p>but instead, WPF mangles it into this:</p>
  
  <pre><code>              //--&gt;Note the lowercased filenames&lt;--//
  C:\Users\MyUsername\documents\visual studio 2012\Projects\MySolution\MyProject\bin\Debug\InterfaceGraphics\Wait.gif
  </code></pre>
  
  <p>causing the application to throw an exception: "Could not find a part of the path '[path-shown-above]'."</p>
  
  <p>NOWHERE in my code do I mess with the current directory. So why is it doing this?</p>
  
  <p>I don't know how relevant this is, but the function call that throws it is:</p>
  
  <pre><code>_gifDecoder = new GifBitmapDecoder(this.GifSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
  </code></pre>
  
  <p>where <code>this.GifSource</code> is a property of type <code>System.Uri</code>, and the XAML that creates the item and sets the property looks like this:</p>
  
  <pre><code>&lt;local:GifImage x:Name="WaitIcon" HorizontalAlignment="Center"
          Height="100" VerticalAlignment="Center" Width="100"
          MaxWidth="100" MaxHeight="100"
          GifSource="InterfaceGraphics/Wait.gif"/&gt;
  </code></pre>