In my program I would like to m开发者_JS百科ake two different things, one with the single touch, second with the two finger touch. But I don’t know how to handle the difference between single touch and two finger touch.
What should I do to achive that ?
Thanks.
UIElement has the ManipulationStarted event. The ManipulationStartedEventArgs has a property named Manipulators (IEnumerable). The count of Manipulators is the number of contacts being used (e.g. 2 elements would mean 2 fingers).
Also available is the ManipulationDelta event. The args there also has a Manipulators property.
精彩评论