Windows Phone 7,MouseLeftButtonDown 是否会转换为已部署的应用程序?
简单的问题 - 如果我编写一些代码来响应“MouseLeftButtonDown”(例如推送图像),如果我在发布应用程序时以相同的方式保留代码,这是否会直接转化为用户将手指按下相同的按钮发现,然后触发代码?
我是否必须将 MouseLeftButtonDown 更改为手势侦听器才能进行转换,以便在编码测试时仅使用 MouseLeftButtonDown 代替非触摸监视器?
谢谢!
Quick question -- if I code something to respond to "MouseLeftButtonDown" such as the pushing of an image, if I leave the code the same way when I ship the app, will this directly translate to the user pushing their finger down on the same spot, and thus fire the code?
Do I have to change the MouseLeftButtonDown to the gesture listener for this to translate, such that MouseLeftButtonDown is only used in place of non-touch monitors when coding to test things?
THanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Matt 在评论中所纠正的那样,
MouseLeftButtonDown
事件与图像点击不同。但是,结果是相同的,如果您的代码在模拟器上运行,关于点击,那么它应该在设备上运行。您应该尝试让您的应用程序在设备上运行,因为模拟器中可能很容易忽略一些事情。例如,您的手机的性能可能会下降,因为它的功能可能比您的 PC 弱得多。因此,如果您的应用程序在 PC(模拟器)上运行良好,并不一定意味着您将在设备上获得相同的速度。
As corrected by Matt in the comments, the
MouseLeftButtonDown
event is not the same as an image tap. However, the result would be the same in that if your code works on the emulator, regarding the tapping, then it should work on the device.You should try and get your app running on a device though as there can be things easily overlooked in the emulator. For example, performance can decrease on your phone since it's likely to be quite a lot less powerful than your PC. Therefore, if your app is performing fine on your PC (emulator), it doesn't necessarily mean you'll get the same speeds on the device.