| Subject: Zooming to mouse position |
| Group: microsoft.public.windows.developer.winfx.avalon |
| Date: 4/23/2008 8:58:33 AM |
| From: =?Utf-8?B?QnJ1bm8=?= [Email Address Protection] |
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! |
| Back |