2015-07-13 42 views

回答

0

改为 Windows.Phone.UI.Input.HardwareButtons.BackPressed + = HardwareButtons_BackPressed;您需要使用var systemNavigationManager = Windows.UI.Core.SystemNavigationManager.GetForCurrentView();其中包含BackRequested事件

你也可以添加扩展库和API使用Windows Phone的8.1 ​​Store应用 enter image description here

如果(Windows.Foundation.Metadata.ApiInformation.IsTypePresent(“Windows.Phone。 UI.Input.HardwareButtons“))

Windows.Phone.UI.Input.HardwareButtons.BackPressed + = HardwareButtons_BackPressed;

但是当设备被锁定您的应用程序进入挂起模式,你不能处理事件

+1

我希望在设备锁定处理。捕获组合键并在我的应用程序中触发一个动作 –

+0

我认为这对Windows Phone 8.1 Store应用程序不可能使用 –

+0

确定使用后退按钮。我需要检查一下sdk的延期,但是在我的2015 VS中缺失。如何做到这一点,你可以指导这一点 –

相关问题