this is perplexing, in winforms this is increadibly easy however in WPF this seems impossible.
I need to set the background of a grid to an image, should be simple I thought.
The image has been set as a Resource (right click on the project name -> properties -> resources tab -> import existing file) but when i click the Background property and select tile brush it points me to the file that is imported into the Resources folder, this works until the app is ran from outside of visual studio where it doesn't work.
<Grid Width="550" Height="350">
<Grid.Background>
<ImageBrush ImageSource="Resources/CINTRA2016.png"/>
</Grid.Background>
I have the above code in XAML, how do I work with resources? I have also tried <ImageBrush ImageSource="pack://application:,,,/CINTRA 2016;CINTRA2016"/>
which didn't work.
Both images have a build action of Resource in Solution Explorer