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?
Try this:
BitmapImage image = new BitmapImage(new Uri("/MyProject;component/Images/down.png", UriKind.Relative));