Question not showing resource images.

Abe

Member
Joined
Mar 16, 2017
Messages
20
Programming Experience
Beginner
Hey guys, new to the forum as well as new to WPF (been using winforms).

Having a strange issue with my debugger. If I am in developer mode all my images and elements looks great. Once I hit debugger, all the images dissapear but the elements stay. Any ideas? I have tried multiple images.

Here is how I got the images going.

-Right click the Main app and went to properties > Resource Manager > Add existing.
- Imported the image and confirmed that it was in the project files resource folder.
- Put image from toolbox on form and selected the properties.
- In properties set the resource to the image.

( I know there is no such thing as WPF form sorry for typo, just WPF).

Untitled.png
 
Last edited:
Add files to project (not in project Resources) and set their Build Action to Resource, now when you select image Source the uri will be similar to "Resources/01.jpg" and show both for designer and runtime.
 
Add files to project (not in project Resources) and set their Build Action to Resource, now when you select image Source the uri will be similar to "Resources/01.jpg" and show both for designer and runtime.

Thanks for the reply I am unsure how to add to the project only way I know if through resources.
 
Back
Top Bottom