When the Image\'s Source property is set the following way, the picture is taken from /Images/down.png.
/Images/down.png
How would I do the same thing programmatically?
myImg.Source = new BitmapImage(new Uri(@"component/Images/down.png", UriKind.RelativeOrAbsolute));
Don't forget to set Build Action to "Content", and Copy to output directory to "Always".