How to present full screen / fullscreen app in Windows Phone 8.1?

1

I want my application to run in full-screen mode.

I have tried using the codes below, however, they are giving some errors.

The code is not recognized by the emulator:

<phone:PhoneApplicationPage 
   ...
   shell:SystemTray.IsVisible="False"
   ...
/>

"SystemTray" does not exist in the current context:

private void OnPhoneApplicationPageLoaded(object sender, RoutedEventArgs args)
{
   SystemTray.IsVisible = false;
}

How do I do it?

    
asked by anonymous 03.07.2014 / 03:52

1 answer

1

In Windows 8.1 it's even different! changed follow the code below:

StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
// Hide the status bar
await statusBar.HideAsync();    
//Show the status bar
await statusBar.ShowAsync();

Source: SOEN - Hide Status bar in Windows Phone 8.1 Universal Apps

Reference

04.07.2014 / 14:51