View Canvas mouse click coordinates

I need to implement a kind of graphic editor, where the operator can add "templates" to a plant. I'm using a View Canvas and the operator is supposed to click on the Canvas where he wants the new template to be placed. In the mouse click events I can get the X/Y client/page/screen coordinates, but non of them let me know the coordinates relative to the top/left canvas corner. Is there any way to get those values? Or at least is there a way to know the x/y coordinates of the top/left canvas corner?

image

Thanks in advance, regards

Bump!
I'm working on a similar application and would appreciate any help in finding a solution.

There's a bug in Designer too. When I click on in a View Canvas in Preview mode it returns x: 21, y: 21 or thereabouts instead of x: 0, y: 0. This suggests that the origin is over at .

Thanks!