I'm using the Tile View Databinding sample approach to implement a dashboard type interface for my application.
My issue is with using the keyboard and the tab key to set focus and then pressing the enter key to trigger the tile open. If I use the keyboard to set focus to a tile, and then press enter to activate it, my dashboard crashes. This is reproducible in the sample as well.
The problem is in the StateChangeBehavior.cs, in AssociatedObject_Click event, which is triggered when enter key is pressed.
The click event is relying on the Target.SelectedIndex to pull the item from the item container generator. On the focus/enter case, this is -1, causing index out of bounds and a crash.
I need a way to get the index of the focused item so I can trigger the maximize tile action for the focused tile.
Looking at the Target object, I can see in the debugger a FocusedInfo object that would give me the index but I do not have access to that programmatically.
Is there a way to get this information from Target object?