View Single Post
Old 04-23-2008   #1 (permalink)
Bruno
Guest


 

Zooming to mouse position

Hello all,

I am trying to zoom to the mouse position in WPF. I have tried using a
viewbox and scaletransform. With the scaletransform I set the origin to the
mouseposition but when the origin changes (mouse moved) the zoomed elements
jump to another location. The viewbox gave the same problems.

Actually I just need a canvas with objects inside (like rectangles or
textboxes) and zoom the whole canvas arround the position of the mouse. Like
google maps or a similar application. It zooms to the location that your
mouse is hovering over.

Thanks!