HOW TO HIDE STATUS BAR FOR UNIVERSAL APPS IN WINDOWS PHONE 8.1

Royce Roy

Total Post:149

Points:1043
Posted by  Royce Roy
 1871  View(s)
Ratings:
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
  1. Mayank Tripathi

    Post:397

    Points:3117
    Re: How to hide Status bar for Universal Apps in Windows Phone 8.1

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!