I want to access some file outside the current project (wpfg as below). But I cannot use ../
to navigate further up than root.
The file structure is like this:
- UI
- wpfg
- app.xaml
- screen
- history.xaml
- textures
- background.png
- wpfg
I want to use background.png in history.xaml. I tried
<Image Source="../../textures/background.png" />
but it won't work.
Note that I'm not able to move the textures folder or associate it with the project. Also I cannot write C# code. More context: How to access an image that doesn't belong to any project/assembly with relative path