I added the GestureListener
to an image i'm trying to have zoom like this Stack Overflow answer here: How to zoom in and zoom out Images in WP7?
The problem is that the image does not ever stop zooming, and covers other controls on the page. This covers a few important buttons on the page.
In addition, it allows the image to get so small that it's very hard to make it bigger, and allows the image to go so far off the screen where it's too hard to bring it back.
My goal is to: Keep the image in the Grid Row it's assigned to, to not cover other controls. Prevent the width/height of the image from getting to small Prevent the Width/height of getting too big Prevent the image from being dragged off the screen.
Is there a way to solve this? The Width/Height of the Image
object are not modified by the GestureListener
, so I cannot simply do
Image i = sender as Image;
if (i.Height == TOO_BIG)
return;
...