Pinch and zoom - Getting touch coordinates


  • Hi,

    I am trying to get the touch coordinates for pinch and zoom. I have implemented the gesture manipulation handlers via Windows.UI.Input.GestureRecognizer. I am triggering my pinch and zoom logic when for the "manipulationupdated" event, event.delta.scale is not 1. When manipulation happens inside the "manipulationupdated" event object I find coordinates of only 1 position. How do I calculate both the finger touch coordinates from this information?

    Also how do I know which touch coordinate the position belong to? I find the position repeated multiple times inside the event object -  at event.position and event.detail[0].position

    What I am trying to achieve is performing pinch and zoom in a chart(much like a map). Kindly help me out with these questions.

    -- Thanks Jithin Emmanuel

    Sunday, October 14, 2012 5:55 PM