You can use relative paths:
(one). Regarding the project:
<Image Source="/Untitled.png".../>
(2). Regarding the path of the XAML file where this element is defined:
<Image Source="Untitled.png".../>
But if the image is in an external assembly, you need to specify the name of the assembly, otherwise WPF will not be able to find it.
Pavlo Glazkov
source share