1

I'm trying to display an image in wpf application but the image is not displaying in my application, someone give solution for this..

 <Image Source="Images/LoadTestInfo.png" Stretch="Fill" HorizontalAlignment="center" Width="1024" Height="700"  VerticalAlignment="center"  />

Thanks in Advance...

Regards

R.Karthik

Karthik
  • 113
  • 2
  • 15

2 Answers2

0

Set Build Action as Content and select Copy if newer.

Abdurrahman Alp Köken
  • 1,236
  • 1
  • 13
  • 12
0

Alright, So you need to right click your solution, and ensure that you have added your image. Do this by right clicking then -> add -> new item. Once you have done this, just change the source of you image and it should display the image. Also set build action to resource.

Needham
  • 457
  • 1
  • 6
  • 15