Home > DeveloperSection > Forums > How to hide Status bar for Universal Apps in Windows Phone 8.1
Royce Roy
Royce Roy

Total Post:134

Posted on    April-23-2015 5:30 AM

 Windows Phone C#  Windows Phone 

 1 Reply(s)
 1226  View(s)
Rate this:
How to hide the Status bar in Windows Phone 8.1 (C#, XAML)?

In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1

Mayank Tripathi
Mayank Tripathi

Total Post:397

Posted on    April-23-2015 8:11 AM

With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed

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

await statusBar.ShowAsync();
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync(); 
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().ShowAsync(); 
for hiding and showing the system tray

Don't want to miss updates? Please click the below button!

Follow MindStick