Windows 8 App - ListView一般问题 [英] Windows 8 App - ListView General Question

查看:92
本文介绍了Windows 8 App - ListView一般问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推荐答案

您有一个 SelectionMode 属性,用于确定选择是多个,单个还是无。

you have a SelectionMode property which determines if the selection is multiple, single or none.

点击你有 ItemClick 事件,你也可以在itemtemplate中定义click方法,事件处理程序中的.sender参数会给你已单击的项目。

And for the clicking you have ItemClick event but also you can define the click method in the itemtemplate which.Sender parameter in the event handler would give you the item that has been clicked.

您也可以使用listview上的selectionchanged事件,并在事件参数中获取所选项目。

you can as well use the selectionchanged event on the listview and among the event arguments you can get the selected item.


这篇关于Windows 8 App - ListView一般问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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