![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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! |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Zooming to mouse position I managed to get it work using a Matrix and MatrixTransformation. When scaling use the Matrix.ScaleAtPrepend function. "Bruno" wrote: Quote: > 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! |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Internet exploerer 8 Zooming every webpage?? | Network & Sharing | |||
| Auto Zooming after connecting to a projector | Vista General | |||
| Problem with unwanted zooming in | Vista General | |||
| Zooming in Explorer | Vista General | |||