开发者

How to hide menu items?

开发者 https://www.devze.com 2023-04-03 07:55 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消