In your project:
- Create a folder say “img”, right click on it and select add existing item add image to folder
- Go to properties of the added image, set
Build Action
asResource
.
It worked for me.
In XAML
<Image HorizontalAlignment="Left" Name="MyImg" Height="80" Margin="273,147,0,0"
VerticalAlignment="Top" Width="100" Source="/img/Desert.jpg"/>