Convert Viewport point to container reference point in WPF -
I've plotted control over the viewport in specific locations. And the viewport is placed on the canvas. When clicking on plotted control, I want to get the coordinate point in the context of the view port container (canvas). I get point coordination where the control is placed on the ViewPot, but I want it in the context of the container.
Please suggest your ideas for converting the viewpoint point to a normal screen point.
Thanks in advance.
Finally I found:
var currentPosition = Mouse GetPosition (container);
It will return the current click point in the context of ViewPort.
Comments
Post a Comment