How can I handle an event when pressed Start butto

2019-05-05 15:43发布

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条回答
成全新的幸福
2楼-- · 2019-05-05 16:18

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

查看更多
登录 后发表回答