ListView Tap-and-Hold & SelectedIndexedChanged

G

Guest

Hi,

I have a ListView in my Pocket PC application that contains several columns
and performs two major functions:
1. If the user selects a row, he/she is taken to a details screen with more
information about the selection.
2. If the user performs a tap-and-hold over one of the rows, a context menu
is supposed to display giving the user more options.

I have a SelectedIndexChanged event handler in my form that is handling case
#1. I also have a ContextMenu that is coupled with the ListView with a few
options to handle case #2. When I have the SelectedIndexChanged event
handler active, that logic works, however I am unable to perform a
tap-and-hold over top of a row in the ListView. The SelectedIndexChanged
handler logic fires. When I comment out the SelectedIndexChange handler
logic, the tap-and-hold support works.

It seems like you can only have one or the other. Any ideas?
 
G

Guest

Thanks for the tip Alex, however it did not work. I still am unable to get
tap-and-hold support for a ListView if I have a SelectIndexChanged event
handler ascribed to it. The tap-and-hold support works, but only after the
SelectedIndexChanged routine fires and executes. Any other ideas?

Thanks,
Shaun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top