I'm making a C# WPF application on Visual Studio 2013. My application has an image in it called mainImage
.
I made all the images I need in my program to be a Resource
. and then I was changing the image in my application with a code like this :
mainImage.Source = myWindow.FindResource("image") as BitmapImage;
The problem is that when I take my .exe and try to run it without the whole project, It gives an exception because it can't find the image. I want my images to be something like "part of the application", so that wherever I run my application (even if I run it separately from the Visual Studio project), I want the images to show up. Can any one help me with that?