简体   繁体   English

Windows Phone 7或Windows Phone 8中的MouseMove事件替代方法?

[英]MouseMove event alternative in Windows Phone 7 or Windows Phone 8?

I need a requirement to move my rectangle around the Grid. 我需要在矩形上移动矩形。 In WPF or Silverlight , we can use MouseMove event to capture the points to get my rectangle to be moved. 在WPF或Silverlight中,我们可以使用MouseMove事件捕获点以使矩形移动。 But in Windows Phone 7 which event will be highly suitable to do these kind of scenario. 但是在Windows Phone 7中,哪个事件将非常适合执行此类情况。 Any one can you please help me on this ? 有人可以帮我吗?

In Windows Phone 7 you can handle manipulation events as described in How to: Handle Manipulation Events . 在Windows Phone 7中,您可以按照如何:处理操纵事件中所述处理操纵事件

In Windows 8 (but not in Windows Phone 8) you could perhaps use the GestureRecognizer , as described in this question: Detect Simple Touch Gestures . 在Windows 8中(但在Windows Phone 8中则不是),您可以使用GestureRecognizer ,如以下问题中所述: 检测简单的触摸手势

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM