How can I handle an event when pressed Start button (Windows Phone)

ぐ巨炮叔叔 提交于 2020-01-13 12:07:22

问题


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 ?


回答1:


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. 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).



来源:https://stackoverflow.com/questions/9850221/how-can-i-handle-an-event-when-pressed-start-button-windows-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!