开发者

How To Handle Two-Finger Tap Event ? WPF

开发者 https://www.devze.com 2023-03-22 06:22 出处:网络
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 a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消