Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 7 Hiding the Application Bar

I would like to be able to press a button to disable the menu bar in my application. If you go

menubar.IsVisible = false;

it throws a null reference exception. The menu bar is declared in XAML.

Anyone know if its possible to hide it on the fly like this?

like image 439
turtlepower Avatar asked Nov 07 '10 02:11

turtlepower


1 Answers

You can access this as a static member on ApplicationBar. i.e.

ApplicationBar.IsVisible = true/false;

Some background here on why ApplicationBar doesn't play like normal silverlight elements.

Why are the ApplicationBar objects not FrameworkElements? - Peter Torr's Blog

like image 55
Mick N Avatar answered Oct 06 '22 17:10

Mick N