点击列表视图中的项目最简单的方法是什么? [英] What is the simpliest way to click on an item in a listview?

查看:95
本文介绍了点击列表视图中的项目最简单的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的代码中添加新列表之前,我的

Before i added a new List in my code my

ItemClick

事件工作得非常好。

现在,如果我点击我的项目列表我没有异常也没有错误,没有任何反应。



我看不清楚原因。


< b>我尝试了什么:



/

event worked very well.
Now, if i click on an Item in my List i get no exception and no error, nothing happens.

I cant see why.

What I have tried:

/

推荐答案

之间没有联系列表视图和处理程序之间 itemList1_ItemClick ,在你的代码/标记中没有...

最接近它的行是'// bezeichList。 ItemClick + = bezeichList_ItemClick;',但即使是在评论中......

添加如下这样的一行:

There is no connection between the list view and between the handler itemList1_ItemClick, nowhere in your code/markup...
The closest line to this is '// bezeichList.ItemClick += bezeichList_ItemClick;', but even that is in comment...
Add a line like this:
listView.ItemClick += itemList1_ItemClick;


这篇关于点击列表视图中的项目最简单的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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