Appreciate that the WP7 ApplicationBarIcon is not standard control as such.
I need to be able to hide this programatically (I need to hide rather than disable)
1/ is there any other way I can do this other than adding/removing the icon
2/ assuming that I have to add and remove it, how do I associate an event to the control that I am adding?
- thanks
The following shows: creating an appbar in code; adding a button to it (including a “click” event handler); and removing the specific button.
The important thing to note is that you can’t refer to buttons (or menu items) by name.