简体   繁体   中英

Is it possible to know where the user tapped in a ListView or GridView item in Windows Runtime (Universal) App?

So I just want to know if I can know whether the user clicked on the left hand side or right hand side of an item in a Clickable ListView or GridView Control in Windows Runtime App. Is it possible? If so, how?

The Tapped event which you could try using has a GetPosition() method on TappedRoutedEventArgs which you could use, which the ItemClick event doesn't. You could also try to get the position in the PointerPressed event and then use it in ItemClick which might work better since Tapped might not necessarily work the same way as ItemClick .

Really though this just sounds like something that should be avoided as users might not expect a different behavior based on where they click on an item.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM