I'm trying to create a list with BitmapImages like this.
List<BitmapImage> Images = new List<BitmapImage>
{
new BitmapImage(new Uri(@"/Images/Car.bmp", UriKind.Relative)),
};
Right now I'm adding one image manually from the resource \Images\, but I don't want to do that for all 68 images. Is there a way to make a method, that will look through the resources \Images\, and output a list of all the BitmapImage paths like above?
something like.
Foreach(Item in Images)
{
List.add(ItemPath + ItemName)
}
Here is a picture of the folder am talking about:
