2015-07-13 41 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中缺失。如何做到這一點,你可以指導這一點 –

相關問題