I managed to get it work using a Matrix and MatrixTransformation. When
scaling use the Matrix.ScaleAtPrepend function.
> 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.