按下“开始"按钮时如何处理事件 (Windows Phone) [英] How can I handle an event when pressed Start button (Windows Phone)

查看:29
本文介绍了按下“开始"按钮时如何处理事件 (Windows Phone)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在按下开始"按钮(Windows Phone)时创建事件?

How can I make an event when pressed on Start button (windows Phone) ?

更新如果不可能,那么我怎么知道用户按下了开始"按钮?

UPDATED If it is not possible, so how can I understand that user have pressed START button ?

推荐答案

开始"和搜索"按钮本身是保留的,不会向第三方应用程序生成事件.

The Start and Search buttons themselves are reserved and do not generate events to third party applications.

话虽如此,当用户按下开始按钮时会产生两个事件:

Having said that, two events will be generated when the user pushes the start button:

  1. 带有 NavigationModeForwardIsNavigationInitiatorfalse
  2. A PhoneApplicationService.Deactivated 事件
  1. A navigation event with NavigationMode being Forward and IsNavigationInitiator being false
  2. A PhoneApplicationService.Deactivated event

但是,您不能使用这些事件中的任何一个取消导航,它们可能由于其他原因(例如按下搜索按钮)而发生.

However you cannot cancel the navigation using either of these events and they can occur for other reasons (like pressing the search button).

这篇关于按下“开始"按钮时如何处理事件 (Windows Phone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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