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
Post a Comment