c# - How to hide/show the icon button from the application bar in windows phone 8 apps? -


i developing application windows phone 8. problem could't hide/show icon button application bar. 1 tell me answer if have.

we can't access direclty visibilty propety of application bar,and other way remove icon when u no need , add again when need it.

to remove first appicon,

applicationbar.buttons.removeat(0); 

to add,

applicationbariconbutton b = new applicationbariconbutton(); b.text = i.tostring(); b.iconuri = new uri("/images/icon1.png", urikind.relative); applicationbar.buttons.add(b); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -