WPF mousePos and icon.Margin align. Visual rep does not.
So I'm trying to make an icon visible in a map at the same position as the mouseclick, but it always appears somewhere in the bottom right quadrant. What am I not seeing? It is like there is a layer askewed to the map .Here's the xaml bit
There's only a grid and a page as ancestors. No attributes on the grid. And here are the C# code
Let me know if you need more for this to make sense. Thank you so much in advance.
1 Reply
Margin is the spacing between elements it is not the absolute position