How to specify path to Image resources in WPF application

后端 未结 2 1607
遇见更好的自我
遇见更好的自我 2021-01-26 07:55

Below is in a flow document
I can see all 5 in design
When I run the program then none are found
How can I get relative path to work?



        
2条回答
  •  悲&欢浪女
    2021-01-26 08:42

    Currently the image files are part of the solution, but not part of the project, so they're not embedded in the assembly when you compile. You need to add the to the Gabe2a project, with the build action set to "Resource".

提交回复
热议问题