I have images in my project whose build action are set to Resource. On a WPF form i can use relative paths to access the images as they are embedded in the resources.dll for the project. When i try to bind a picture box to the relative path of the image, it gives file not found as it builds the path as though it is a physical path. How can you bind a picture box to an image whose build action is resource?