1. When the app is open, keep the screen awake and do not enter hibernation
Add in Onnavigatedto:
New displayrequest ();d isplayrequest.requestactive ();
2. App Fullscreen:
A. Hide Status Bar
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView (). Hideasync ();
B. Hide the following virtual navigation keys
true;
3. Processing the back key message for Windows Phone
protected Override voidonnavigatedto (NavigationEventArgs e) {if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent ("Windows.Phone.UI.Input.HardwareButtons")) hardwarebuttons.backpressed+=hardwarebuttons_backpressed; }protected Override voidOnnavigatedfrom (NavigationEventArgs e) {if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent ("Windows.Phone.UI.Input.HardwareButtons")) hardwarebuttons.backpressed-=hardwarebuttons_backpressed; Base. Onnavigatedfrom (e);}Private voidHardwarebuttons_backpressed (Objectsender, Backpressedeventargs e) {e.handled=true;//Press Back No response
//Application.Current.Exit ();//Exit Program}
Common APIs for WindowsPhone8.1 and WIN10