How to hide menu items?
With a <phone:PhoneApplica开发者_C百科tionPage.ApplicationBar>
how do I hide an ApplicationBarMenuItem programmatically?
I don't think you can set their Visibility
programmatically, but you can use IsEnabled
on them?
If you really need to hide/show them, then try adding/removing them in code instead of in XAML - see some sample code for adding in http://msdn.microsoft.com/en-us/library/ff431786(VS.92).aspx and for modifying in http://msdn.microsoft.com/en-us/library/hh394044(v=VS.92).aspx
精彩评论