简体   繁体   中英

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. But in Windows Phone 7 which event will be highly suitable to do these kind of scenario. 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 .

In Windows 8 (but not in Windows Phone 8) you could perhaps use the GestureRecognizer , as described in this question: Detect Simple Touch Gestures .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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