I have done quite a bit of research but still cannot figure this out.
I have made a program that I would like to include a jpg image as an embedded resource, in the exe file. The reason is I don't want anyone tampering or changing the image once the program is released, and also when I distribute the program it would be good if there was only one file to send.
This is what I have at the moment, which works fine when loading an image on the hard drive.
<Border.Resources>
<BitmapImage x:Key="Logo" UriSource="C:\Users\gmcco\Pictures\Development\Logo.jpg"/>
</Border.Resources>
<Grid>
<Image Source="{StaticResource Logo}"/>
</Grid>
I have loaded the image into the program and changed the properties to make it an embedded resource, but cannot seem to use it.
How do you reference a embedded image in XAML please?