WPF Multi-touch development [2]:WPF touch the execution order of several gestures

Source: Internet
Author: User

Original: WPF multi-touch development [2]:WPF Touch's execution order of several gestures

I said in front of the use of the simulator under Win7, debugging analog multi-touch, the actual development of this is also more troublesome.

To get a few mouse. So more people will buy a touch condom on the display. This enables 2-point touch. There is no real touch screen expensive, the price is also relatively preferential.

Then get to the point. WPF actually supports touch events on its own. Some of them are high and touch-screen manipulated gesture routed events. Greatly enhance the user experience. Allows us to make a touch effect similar to that of an iphone. And make these soft effects portable to desktop touch applications.

First we introduce a couple of gestures that they were

Manipulationstarting, manipulationstarted, Manipulationdelta, manipulationinertiastarting, ManipulationCompleted

English also line of friends from the name can be very good to see the meaning of a few gestures hehe.

First of all , we introduce manipulationstarting name Incredibles, touch at the beginning of touching finger touch when

The event is triggered. The execution order is No1.

If you don't move at this time. manipulationstarted trigger touch after start

After a simple touch, this event ends immediately after the completion of the complete () method is called and triggered directly. manipulationcompleted

Touch End Event.

where routed events will fire TouchMove. This will inspire Manipulationdelta in manipulationstarted .

This English delta has the meaning of the transformation function we see the touch when the rotation of the scaling is actually here.

When the operation of the released is also a stop, the moment will inspire manipulationinertiastarting This is the time to assign inertia

With the soft effect that makes the change of touch with acceleration or deceleration

Will be triggered at the end of the end. manipulationcompleted

The above words seem to be a little Rao, understand very clearly, beginners may be a little unclear the following is an MSDN look for a diagram to clearly show their order of execution

Chapter We talk about using these gestures to create a touch app, as well as detailed in-depth analysis of these advanced touch events

Chilling in the night

Belongs to: The technology of victory. Official website:/httpwww.utionsoft.net

WPF Multi-touch development [2]:WPF touch the execution order of several gestures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.