In WinForms it is possible to import an image as a resource, and the image would still work when compiled in the /bin/Debug folder.
I can\'t figure out how to get t
images
) in your Visual Studio Project.Build Action
to Resource
(in the Properties window, see second image in this answer).Then write the UriSource
property like you already did:
UriSource="/images/jamsnaps-dark.png"
That URI is effectively a Resource File Pack URI, where the prefix is automatically added by WPF.