In my program, I have a resources file named "test" with image "test.png". I want to use it in a XAML file. But when program runs I don't see image. My code:
xmlns:r="clr-namespace:ProjectB.Properties"
...
<Image Source="{Binding Source={x:Static r:Resources.test}}" />
Build Action of the "test.png" image is set to Resource
EDIT:
I wanted to use an image in a resources file to be able to use different images in different globalizations (same as strings in resources file). I don't know it possible in the way I tried but I ended with adding images to normal folder in my project like answers below suggest, to resources file I added paths to image and XAML file looks like this:
<Image
Source="{Binding Source={x:Static r:Resources.test},
Converter={StaticResource StrToImgConv}}" />