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 pr
I guess you can do it by restricting transform.ScaleX
and transform.ScaleY
in the below event handler.if initialScale
< somelength ,then only do the code.
private void OnPinchDelta(object sender, PinchGestureEventArgs e)
{
transform.Rotation = initialAngle + e.TotalAngleDelta;
transform.ScaleX = initialScale * e.DistanceRatio;
transform.ScaleY = initialScale * e.DistanceRatio;
}