![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br>
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Guest
Posts: n/a
|
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! |
||
|
|
|
|
|
|
#2 | ||||||||||||||
|
Guest
Posts: n/a
|
I managed to get it work using a Matrix and MatrixTransformation. When
scaling use the Matrix.ScaleAtPrepend function. "Bruno" wrote:
|
||||||||||||||
|
|||||||||||||||
|
|
|
|