开发者

How To Handle Two-Finger Tap Event ? WPF

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜