So, what is my problem ? I have a popup, and when i open it, i want to disable current page in my windows phone applications. so i make this this.IsEnabled = false; But my ApplicationBar is still available. Of course i try with ApplicationBar.IsMenuEnabled = false; My next idea was to do something like this:
for (int i = 0; i < ApplicationBar.MenuItems.Count; i++) { ((ApplicationBarMenuItem)ApplicationBar.Buttons[i]).IsEnabled = false; }
...and still no result. I'm sure that some is done that before, can you show me how?
Answer: 1
Just include the using Microsoft.Phone.Shell to pickup the namespace within your .cs file and you can do the following:
ApplicationBar.Enable(); and
ApplicationBar.Disable(); According to http://new.efficientcoder.net/2010/10/windows-phone-7-quick-tip-17.html
by : Guo Hong Limhttp://stackoverflow.com/users/641123
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog