通过在屏幕上拖动来移动实例 [英] moving an instance by draging on screen

查看:72
本文介绍了通过在屏幕上拖动来移动实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望用户在屏幕上拖动手指来移动我的船级,然后是船。我该怎么做谢谢!

解决方案

您好,


对于拖动操作,请查看Windows Phone中的操作事件( http://msdn.microsoft.com/en-我们/库/ WindowsPhone的/开发/ ff426933(v = vs.105)的.aspx )。
基本上你必须根据操纵三角洲改变你的船位。  

I want my ship class to be moved by the user draging their finger on the screen and the ship follows. How would I do this. Thank you!

解决方案

Hi,

For drag operations take a look at Manipulation events in Windows Phone(http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff426933(v=vs.105).aspx). Basically you have to change your ship position according the Manipulation Delta.  


这篇关于通过在屏幕上拖动来移动实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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