0

Heres my code

enter image description here Here is my design view

enter image description here

It seems fine

However when I run the program I got this

enter image description here

Where is my Plus icon? I set order "Bring into front" also

Thanks

albatross
  • 455
  • 2
  • 8
  • 27
  • 2
    Make sure the **Build Action** of your image is set to **Resource**. – Mike Eason Nov 25 '15 at 08:20
  • 2
    `` should work. The relative path doesn't make sense (actually it isn't even one because of the leading `/`). – Clemens Nov 25 '15 at 08:22
  • And please do not post a screenshot of your code. Add it as text to your question. Indentation by 4 characters will care for proper code formatting. – Clemens Nov 25 '15 at 08:26
  • Thanks A lot Clemens. :) It worked – albatross Nov 25 '15 at 08:26
  • Clemens I added code hovewer formatting didnt work (seems working but didnt allow me to post the code) I think there is a problem about it. – albatross Nov 25 '15 at 08:27
  • Please, instead of using a relative path, use your image as resource. "pack://application:,,,/Images/add.png" – Ugur Nov 25 '15 at 08:28
  • @Ugur The `pack://application:,,,/` prefix is automatically added by the XAML parser, and hence not strictly necessary in XAML. So, `Resources/Images/add.png` is implicitly converted to `pack://application:,,,/Resources/Images/add.png`. – Clemens Nov 25 '15 at 08:30
  • Today Its my learning day :) Thanks a lot :)) – albatross Nov 25 '15 at 08:41

0 Answers0