Windows Phone 8 应用程序栏按钮长按事件 [英] Windows Phone 8 Application Bar Button Long Tap Event

查看:36
本文介绍了Windows Phone 8 应用程序栏按钮长按事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Windows Phone 8 C# 应用程序.我必须获得放置在应用程序栏中的前进和后退按钮的长按事件,但仅找到应用程序栏按钮的 Click 事件.

I am working on a windows phone 8 c# application. I have to get long tap events of Forward and Backward buttons that I have placed in the Application bar, but found only Click event for application bar button.

请告诉我如何捕获应用程序栏按钮的长按事件?

提前致谢

推荐答案

这是不可能的.ApplicationBar API 的限制性很强,这是 Microsoft 为确保一致性而有意采取的措施.您无法处理来自 ApplicationBar 的任意事件.如果您想要这种行为,则必须构建自己的 UI 来支持它.

This is not possible. The ApplicationBar API is quite restrictive, which is a deliberate move by Microsoft to ensure consistency. You cannot handle arbitrary events from the ApplicationBar. If you want this kind of behaviour, you will have to build your own UI to support it.

值得注意的是,您的用户不会期待应用栏上的长按"(通常称为点击并按住)行为.

It is worth noting that your users will not expect 'long press' (more commonly referred to as tap-and-hold) behaviour on the app-bar.

这篇关于Windows Phone 8 应用程序栏按钮长按事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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