This project is read-only.

How can I retrieve the real position in ZoomControl when the zoom is not 1.0?

Jul 7, 2015 at 8:43 AM
Edited Jul 7, 2015 at 8:46 AM

I need to know the position when the mouse is clicked in the ZoomControl, to do this, I have added a double click event to a ZoomControl to show the position of the mouse.

I do this to get the position:
void DoubleClick_(object sender, RoutedEventArgs e)
        var x = (this._mouseDownPos.X - (this.TranslateX));
        var y = (this._mouseDownPos.Y - (this.TranslateY));


        // Draw a shape to position x and y
This works well when the zoom is 1.0, but when the zoom is modified, these equations don't work. I see that ZoomControl has got a property called "Zoom" with the value of the zoom but I don't know how use it.

King Regards. Great library.