I just saw an educational video that explained how to show an image in a window by using the <Image>-tag in XAML. The author explained that you just have to put the path of the image there, in his case it was
C:\Users\BOFH\CSharpProjects\SomeEmployer\MyProject3\myImage.png
(ok, actually the path was a bit different, and he is not the BOFH, but I don't want to tell the name of that author here.)
What bothers me is that there is an absolute path. When I work in a team of developers, I really cannot use an absolute path and commit and push my change to our GIT repository.
In Xcode I just add an image to a project, and it just works. Is there a similar workflow when developing with Visual Studio?
EDIT: Problem solved. I read this SO question as suggested by @nosale in the comments and it solved it. I think the reason why I didn't find the solution myself at first, is that there are so many developers who are doing it wrong. Like either hardcoding the paths, or putting the files into bin/Debug, or using some environment variable like RESOURCE_PATH and dynamically resolve that at runtime. All these solutions are awful in my opinion.