Hy!!
I added a png to the debug dic. Now my Xaml Code:
<Button Height="23" HorizontalAlignment="Left" Margin="160,249,0,0" Name="button1" VerticalAlignment="Top" Width="57" ">
<Image Source="\back.png"></Image>
</Button>
The image won’T be found. I read some tutorials about a image in a button, but they all speak about resources etc.
Please write your answer step by step i am very new to WPF
Add the file to the solution. Open the image properties by right click on an image and make sure the build action for image is set to Resource.