When to use ListView's oniteminvoked event.detail.itemPromise or event.detail.itemIndex RRS feed

  • Question

  • The listviews oniteminvoked event has 2 members: itemPromise and itemIndex.

    Which one should be used? I think calling mylist.getAt(event.detail.itemIndex) has the same effect as event.detail.itemPromise.done() to the item?

    I guess if the data source could be async, then calling getAt might not be able to fetch the correct item, if the list hasn't been populated with enough items?

    • Edited by pkursawe Tuesday, April 8, 2014 7:12 PM changed even name
    Monday, April 7, 2014 8:36 AM

All replies

  • I want to investigate the problem, but I just don't see the "OnItemChanged" event in the ListView object:


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, April 8, 2014 7:09 PM
  • Sorry, Matt, typo. I meant onitemonvoked.
    Tuesday, April 8, 2014 7:12 PM