xbox one - WinJS.UI.ListView mediaTile -
We are currently developing an Xbox One and Windows 8.1 app, which share the same codebase, and I An issue with 'pointerover' (or hover-state) in a list view object in WinJS.UI.ListView is running in it.
The list view item has an EventListener, PointerOver. However, it only works on the first 10 items in WinJS.UI.ListView, although I see 16 items on the screen, and WinJS.UI.ListView gives me:
indexOfFirstVisible = 0 IndexOfLastVisible = 15
EventListener is my list item, which is:
mediaTile.element.addEventListener ("pointerover", function (that) {that. _allItemsListView .currentItem = {hasFocus: true, index: this.tileIndex}}} .bind (mediaTile, this));
When I add a breakpoint, it hits, but only for the first 10 items, though there are 16 items on the screen.
Does anyone know what I am missing here?
Thanks in advance!
My guess is that you are being bitten by list view visualization, maybe more than 10 tiles then Are not present when you bind your event listener, but they quickly appear on the screen that it is not clear.
I am not enough to give advice in a concrete way. Conceptually you can listen for an event when new items are added to the list (in the list) and then add your pointover event to the new item.
Comments
Post a Comment