This project is read-only.

Transforming projection based on mouse position

Oct 15, 2010 at 3:50 PM

Hi I found this project today and its looking good!

I just wondered if there are any extension methods or factory methods that would allow you to zoom into a UIElement based on the position of the mouse and the scroll wheel, lets say there was a UIElement with an image on it and you moved the mouse to around the top left corner and scrolled the mouse wheel forward, the image would be zoomed and centred to the mouse position, would this be fairly easy to do?



Oct 15, 2010 at 9:33 PM

You don't need 3D for this. It would be easier to use a 2D TransformGroup for this task:

It's basically a RotateTransform and TranslateTranform. You should find a bunch only if you search for it.