This post is under Desktop category, but the folder looks like Mobile version. Could you please let us know which version you are using?
If that’s for Android, I found some topics from internet it mentioned relative path is not good solution for Android, I think you should want to reference the sample code about path MainActivity.cs (3.8 KB) :
Our developer research it and found it’s not caused by our code, here is two solutions about it:
Choose relative path:
marker.ImageSource = new BitmapImage(new Uri(@"/WpfApplication1;component/Assets/AQUABLANK.png", UriKind.Relative));
It point to the image which is called “AQUABLANK.png” in a folder called “Assets” with its “Build Action” set to “Resource” in an assembly called “WpfApplication1”.
Choose absolute path, but you get it from .net API, it still looks like relative path in your code.
marker.ImageSource = new BitmapImage(new Uri(Path.GetFullPath("Assets/AQUABLANK.png"), UriKind.Absolute));
It point to the image which is called “AQUABLANK.png” in a folder called “Assets” with its “Build Action” set to “None” and “Copy to Output Directory” set to “Copy if newer” or “Copy always”.
I tested both of them in .net core version and they work well.