Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hiding application bar in windows phone

I am trying to hide application bar in windows phone application like this : appbar1.IsVisible=false; but when i debug the code , an error occurs NullReferenceException at the same line . why ? need help

like image 427
Ahad Siddiqui Avatar asked Mar 19 '14 11:03

Ahad Siddiqui


2 Answers

Try ApplicationBar.IsVisible = false;

like image 80
Ku6opr Avatar answered Sep 30 '22 11:09

Ku6opr


You can try

ApplicationBar = ((ApplicationBar)this.Resources["appbar1"])
ApplicationBar.IsVisible = false;

This will solve your issue

like image 33
Jagath Murali Avatar answered Sep 30 '22 11:09

Jagath Murali