简体   繁体   中英

Pinch gesture recognizer in uwp

I am developing a UWP application, in which i want to use pinch gesture.

On pinch gesture i want find what controls are there in that two pinch points.

I want to drag two elements at a same time in pinch action.

Its kind of grouping . I just want to drag two elements and once the elements get closer i merge the content of both and create a new item. For example

在此处输入图片说明

I have this 4 grid view items, i want to drag two of them at a same pinch action, then once they get closer i want to merge the content.

Example: text+text2

Hope i explained it clearly. I tried with manipulation events, but dont know how to find a pinch action. Can anyone help me on this.

Thanks, Noorul.

Instead of moving two together, Why don't you move first/second one on to second/first one?

From a Users point of view:

On a phone: To use Pinch Action, I need to hold my Phone with one hand and use second hand to pinch. Instead i can just use one hand to move one item and drag/drop on second item.

On a Tablet: You anyways need two hands but by default on a tablet, pinching is for zoom and scroll, you need to make sure this is also accounted for.

Do you want to rethink your approach? Or do you still want to go ahead in the same way?

Well, this is not exactly an answer but you understand what i am saying rite?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM