2

I'm developing a Modern UI app for WPF c#. The problem is the Image displays only in mode design. When I execute the app, it doesn't show. I added "pack://siteoforigin:,,," but it doesn't work. Anyone can help me please!

Code:

Image Source="pack://siteoforigin:,,,/Image/back1.png"

Thank you.

pushpraj
  • 13,458
  • 3
  • 33
  • 50
Anis
  • 43
  • 6

1 Answers1

0

I know its too late to answer but it could help someone else. Please click on the image and in the properties section, under advance options select build action as Resource. Hope it will work.enter image description here

asim.ali314
  • 41
  • 1
  • 10