Monday 15 September 2014

events - Caculate the distance between two fingers in Windows Phone 8 -


We know that by using the toolkit's . This will be like this:

  Manipulal Starred EventAge Gatepage (UIElment, fingerIndex);   

Is there any similar method in Windows Phone to achieve this without toolkit?

Many thanks!

So, do you want real distance between the user's fingers in the real world, that is in centimeters? It should be simple: you need to know the distance in pixels, then you need information about the physical size of a pixel, and then you multiply.

Now, to get the physical size of a pixel, you need to know the screen size of the phone, for that you need to know the phone model, which you can get from the square. Then you will need a database of the screen size of the phone, which you will need to make yourself for Nokia phones, you can see the official website () Therefore, a pixel lumia 920 size 0,07578125 x 0, 075520833 mm.

Next, you will need to get multitatch events. For this, you will use Manipultine Starred , Manipultile delta , and Manipulation complete events. See for more information.

Hope that I think you are right and this will work for you. If you need more information or clarification, just tell me in comments.

No comments:

Post a Comment