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