Following problem: I just have an Image box on my window with following XAML Code:
<Image x:Name="image1" HorizontalAlignment="Left" Height="100" Margin="261,161,0,0" VerticalAlignment="Top" Width="100" Stretch="Fill" IsHitTestVisible="True" Source="Resources/Jellyfish.jpg"/>
There are no errors and the image is shown in editing mode: Screenshot 1
But when I debug the program, the Image doesn't appear :( Screenshot 2
Does anybody see a mistake?
Regards MightyM
All you have to do is
Resources Resources folder has a file called jellyfish.jpg JellyFish.jpg shows the the Build Action is set to "Resource"3 will ensure that the JellyFish.jpg is embedded into your assembly as a resource stream. If you don't want an embedded resource you can look at PACK URI for your other choices
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With