简体   繁体   English

MouseLeftButtonDown是否可以在WP7设备上使用?

[英]Does the MouseLeftButtonDown work on WP7 devices?

I've recently started work on an application for Windows Phone 7 devices and I haven't yet acquired a WP7 device so I do all the debugging and testing in the emulator. 我最近开始为Windows Phone 7设备开发应用程序,但尚未获得WP7设备,因此我在模拟器中进行所有调试和测试。

So. 所以。 In my application I use the MouseLeftButtonDown event handler to catch a click and navigate from one page to the other. 在我的应用程序中,我使用MouseLeftButtonDown事件处理程序来捕获单击并从一个页面导航到另一页面。 It works perfectly on the emulator but I would like to know for sure if it will work on the real devices as well. 它可以在仿真器上完美运行,但是我想确定是否也可以在实际设备上运行。

The reason I got doubts is because of the name of the event MouseLeftButtonDown... a phone doesn't have mouse. 我疑惑的原因是由于事件的名称MouseLeftButtonDown ...电话没有鼠标。

So anyone knows? 有人知道吗? Anyone can try this and tell me? 任何人都可以尝试并告诉我吗?

对于Windows Phone 7.1(Mango),所有FrameworkElements现在都支持TapDoubleTap ,建议您使用这些元素代替Mouse Events。

If it works in the emulator then it works on the device. 如果它可以在仿真器中运行,则可以在设备上运行。 It would be a poor emulator that behaved differently from the device in such a fundemental area. 在这样的基础领域,这将是一个性能不佳的仿真器 ,其性能不同于该设备。

是的,MouseLeftButtonDown可在设备上使用。

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

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