How to Hide Status Bar in Windows Phone 8.1 Windows Runtime Apps ?

Below is a sample code snippet that demonstrates how to hide the Status Bar in Windows Phone 8.1 Windows Runtime Apps using C# .

How to Hide Status Bar in Windows Phone 8.1 Windows Runtime Apps ?

Windows.UI.ViewManagement.StatusBar StatusBar1 = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

await StatusBar1.HideAsync();