locked
this.itemInvoked.bind(this)

    Question

  • when  I try to understanding  the  "a grid or split app in visual studio"  ,I encounter a difficulty that  what mean "this.itemInvoked.bind(this)"
    Tuesday, April 24, 2012 2:58 AM

Answers

  • Hi Kevin,

    I assume you are talking about in the Page control ready function.

    This is in the setOptions helper funtion.

    Basically what this does is set the oniteminvoked property to call the page itemInvoked.bind method.

    You will see the itemInvoked method listed right below this at the end of the file.

    Set a bp on setOptions and trace in.  You will see it set up the eventListener for this.  Then put a bp in itemInvoked and click on an item and you will see itemInvoked being called.

    -Jeff


    Jeff Sanders (MSFT)

    Tuesday, April 24, 2012 1:01 PM
    Moderator