WPF Ustaw źródło obrazu w kodzie za
myImage.Source = new BitmapImage(new Uri(@"/Images/foo.png", UriKind.Relative));
HRNSBRNS
myImage.Source = new BitmapImage(new Uri(@"/Images/foo.png", UriKind.Relative));