计算OnManipulationDelta上的平移方向 [英] Calculating panning direction on OnManipulationDelta

查看:70
本文介绍了计算OnManipulationDelta上的平移方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ManipulationDelta方法中计算联系人的平移方向?  - 我想弄清楚用户是否向上或向下平移。

How would I calculate the panning direction of the contact in the ManipulationDelta method? - I want to figure out whether the user panned up or down.

谢谢

 

推荐答案

您可以查询CumulativeManipulationDeltaX和CumulativeManipulationDeltaY,然后判断这是否意味着平移水平,垂直或两者。

You could query the CumulativeManipulationDeltaX and CumulativeManipulationDeltaY and then decide if that means panning horizontally, vertically or both.

看看

http://msdn.microsoft.com/en-us/library/microsoft.surface.core.manipulations.affine2doperationdeltaeventargs_members(Surface.10 ).aspx  

谢谢!

-Luis Cabrera

Thanks!
-Luis Cabrera


这篇关于计算OnManipulationDelta上的平移方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆