Picture on the WPF menu with C #

2

I have a problem, I created an application in WPF, and I put a menu that will have images in the items. When I view the image in VS it is ok, but when I run the application the images do not appear. No source is this way?

<Image Source="Image/minhaimagem.png" />

Is there any configuration that should be done? or something like that?

Thanks in advance.

    
asked by anonymous 26.11.2015 / 14:33

1 answer

1

The solution is very simple:

<Image Source="pack://application:,,,/**Coloque.Aqui.O.Namespace**;Component/Image/minhaimagem.png" />
    
10.04.2016 / 05:03