Hi,
I have a customlistview which I load with panels with stuff. Each customlistview's items has a panel with stuff.
I want some things done when the user long press one of the customlistview's items, but only to that item. I need the index of the item in order to remove them from a list.
So far, I capture the panel longclick event, because 1) customlistview don't have longclick event and 2) since the panel takes all the item's space, the customlistivew's click event isn't fired.
So far I use the tag property of the panel to set the index, but I don't like this option because I need to recalculate the indexes when the user inserts or deletes an item. Is there a way to get the customlistview's index where the panel belongs?
Thank you!
I have a customlistview which I load with panels with stuff. Each customlistview's items has a panel with stuff.
I want some things done when the user long press one of the customlistview's items, but only to that item. I need the index of the item in order to remove them from a list.
So far, I capture the panel longclick event, because 1) customlistview don't have longclick event and 2) since the panel takes all the item's space, the customlistivew's click event isn't fired.
So far I use the tag property of the panel to set the index, but I don't like this option because I need to recalculate the indexes when the user inserts or deletes an item. Is there a way to get the customlistview's index where the panel belongs?
Thank you!