I have these in my App.xaml :
<Application.Resources>
<BitmapImage x:Key="myImage1" UriSource="/marathon1.jpg" />
<BitmapImage x:Key="myImage2" UriSource="/marathon2.png" />
<BitmapImage x:Key="myImage3" UriSource="/marathon3.jpg" />
<BitmapImage x:Key="myImage4" UriSource="/marathon4.jpg" />
</Application.Resources>
And these in MainWindow.xaml :
<Image Source="{StaticResource myImage1}"/>
<Image Source="{StaticResource myImage3}"/>
<Image Source="{StaticResource myImage4}"/>
<Image Source="{StaticResource myImage2}"/>
I can see the images in design time, but they are not visible when I run the application. How can I fix this? Thanks