获取ListView中的Double Tapped项 [英] Get the Double Tapped item in ListView

查看:93
本文介绍了获取ListView中的Double Tapped项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为列表视图实现双击处理程序。到目前为止我找到的所有解决方案都使用ListView的SelectedItem属性来获取双击的ListView项,但是这对我的情况不起作用,因为ListView启用了多选的
,并且通常在之前选择了ListViewItem时双击后不再选择双击。

I am trying to implement a double tap handler for a list view. All solutions I found until now use the SelectedItem property of the ListView to get the double tapped  ListView Item, but this doesn't work for my case as the ListView has multiselect enabled and generally when the ListViewItem was selected before the double tap it isn't select anymore after the double tap.

这个问题的正确解决方案是什么?

What is the correct solution for this problem?

推荐答案

所以你唯一关心的是避免ListViewItem在双击时被取消选择?(双击时你得到正确的项目)
So your only concern is to avoid ListViewItem from getting de-selected when double tapped ?(and you are getting correct item when double tapped)


这篇关于获取ListView中的Double Tapped项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆