Reading Appbar commands


  • How can we get the commands on an appbar in javascript based metro app? The commands property allows to set a specified number of commands but I want to later get the commands which are available with appbar. How can I do it?

    Also, if I want to append a new command to existing appbar, how can I do it using javascript?

    Someone, please help, I am stuck!

    • Edited by John Rick Wednesday, October 10, 2012 11:45 AM
    Wednesday, October 10, 2012 11:44 AM


  • If I understand your question correctly, you want to add more events to your appbar button , is my understanding correct?

    If so... you can get the id of that element and associate any event (applicable) using addEventListener("function", eventtype)..

    Arindam Basu

    Thursday, November 08, 2012 7:28 PM