Windows Phone 7 Hiding the Application Bar

前端 未结 4 1654
温柔的废话
温柔的废话 2021-02-20 04:38

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 refe

4条回答
  •  渐次进展
    2021-02-20 05:04

    To do it in code behind if you have not referenced it other than in XAML:

    (ApplicationBar as ApplicationBar).IsVisible = true;
    

提交回复
热议问题