I am having a WPF window, with a background image of one file in my local system. So the XAML file looks like this:
In Solution Explorer set the image file's Build Action property to Resource. Then clean the solution and rebuild it.
Build Action
Resource