Xaml Bitmap UriSource - chemin d'accès absolu de travaux, le chemin relatif ne doit pas, pourquoi?

Je suis, WPF & Xaml-noob, pour les applications de console, il a travaillé pour moi de simplement donner le chemin relatif vers le fichier exécutable pour accéder à un fichier.
Il ne semble pas fonctionner dans le code xaml pour moi. (code en bas)

Chemin d'accès absolu fonctionne parfaitement.

Est-il possible dans le XAML, WPF application pour accéder à un fichier en utilisant simplement un chemin relatif au répertoire de l'exécutable valide UriSource? Si oui comment et si non, pourquoi pas?

Je l'ai trouvé à la question suivante, où ils étaient en train de parler à propos de l'ajout du fichier via Visual Studio "Ajouter un élément existant", de sorte qu'il ressemble à une autre question.

Comment puis-je régler le WPF BitmapImage UriSource propriété d'un chemin relatif?

<Window.Icon>
  <!--absolute path works:-->
  <BitmapImage UriSource="C:\LongPath\SolutionFolder\ProjectFolder\bin\Debug\path4.ico" />

  <!--none of the following relative paths worked:-->
  <!--AppDomain.CurrentDomain.BaseDirectory returns the Debug-folder-->
  <!--<BitmapImage UriSource="path4.ico" />-->
  <!--<BitmapImage UriSource="../path4.ico" />-->
  <!--<BitmapImage UriSource="Debug/path4.ico" />-->
  <!--<BitmapImage UriSource="bin/Debug/path4.ico" />-->
  <!--<BitmapImage UriSource="../bin/Debug/path4.ico" />-->
  <!--<BitmapImage UriSource="../../bin/Debug/path4.ico" />-->
  <!--<BitmapImage UriSource="../Debug/path4.ico" />-->
</Window.Icon>

OriginalL'auteur Jennifer Owens | 2011-05-24