There is a WPF-application in which it is necessary to gate out three MultiTouch the acts, realised over the viewed graphical document:
- Twirl to the left \to the right two fingers => turn to the left \to the right on 90 grades of page of the document;
- An information \cultivation of two fingers => scaling (magnification \reduction of sizes) document pages on the shield;
- Transition to the left \to the right a finger on level => passage to previous \following page of the document.
In Image component in which review of the graphical deed is carried out property IsManipulationEnabled, and secondly, at first, is switched on, event handlers ManipulationStarted, ManipulationDelta and ManipulationCompleted are installed. How to realise
machining of input parametres of these methods to fathom what of three mentioned MultiTouch acts occured to be?
Basically for this purpose handler ManipulationCompleted at which input parametres there are parametres e, probably, suffices. TotalManipulation. Rotation, e. TotalManipulation. Scale. X, e. TotalManipulation. Scale. Y, e. TotalManipulation. Translation.
X, e. TotalManipulation. Translation. Y. But these parametres can simultaneously be not equal to null. How on their values to fathom which act it has been realised by the user?
View Complete Post