How to Find Mouse X and Y positions when i Zoom

Hi Walter,
i’m having a problem with zoom on my diagram. When the mouse moves I am using Mouse.GetPosition(myDiagram) to find the co-ordinates of the selected node on the diagram.

They are correct when zoom is 100% but when i make zoom in or zoom out they become wrong.
Do you have any idea on what can i do?


Or more generally you can convert coordinate systems.
Search this forum for code that uses DiagramPanel.TransformViewToModel.

You suggestion
myDiagram.LastMousePointInModel is perfect!
Thanks Walter