开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜