WPF ItemsControl选择ListBox或ListView中的项目 [英] WPF ItemsControl Select Items like in ListBox or ListView

查看:319
本文介绍了WPF ItemsControl选择ListBox或ListView中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要一个功能,就像List Box中的ListView SelectionMode =Extend一样。



在项目控制列表中,我有20个项目,我选择第3个项目,按住Shift键并按鼠标选择第18个项目。它将从3到18中选择项目。如何在项目控制中获得此功能。它像ListView SelectionMode =Extend。



谢谢

Vinoth X

Hi,

I need a functionality, as like in List Box or ListView SelectionMode="Extend" in Items Control.

In the Items control list, I have 20 Items, I selected 3rd item with Shift Key Pressed and Select 18th Item by Mouse. It will selected items form 3 to 18. How to get this functionality in Items Control. Its like ListView SelectionMode="Extend".

Thanks
Vinoth X

推荐答案

这篇关于WPF ItemsControl选择ListBox或ListView中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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