I'm trying to hide the statur bar on the top of my Silverlight Windows Phone 7 app.
I found this while searching stackoverflow, but is for Xna.
graphics = new GraphicsDeviceManager(this);
graphics.IsFullScreen = true;
I tried it in my app but it does not work. I know it is possible because the board express and xda apps have the feature to hide/show the statusbar.
using Microsoft.Phone.Shell;
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{
SystemTray.IsVisible = false;
}
I think Mahantesh's answer should be the accepted one for WP8:
shell:SystemTray.IsVisible="False"
Put that in the XAML as it the property already defined there (set to true by default).
Alternative:
public MainPage()
{
InitializeComponent();
Loaded += MainPage_Loaded;
}
private void MainPage_Loaded(object sender, RoutedEventArgs events)
{
SystemTray.IsVisible = false;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With