Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WPF ListView中的文本搜索在selectionmode extended下无法正常工作_Wpf_Listview_Gridview_Text Search - Fatal编程技术网

WPF ListView中的文本搜索在selectionmode extended下无法正常工作

WPF ListView中的文本搜索在selectionmode extended下无法正常工作,wpf,listview,gridview,text-search,Wpf,Listview,Gridview,Text Search,我有一个选择模式设置为Extended的WPF ListView(我需要保持它的扩展以实现其他功能)。我还使用TextSearch选项在此listview上启用了文本搜索 现在考虑一下,我在ListView中有以下5项: 苹果 Ball==>这是当前选定的项目 猫 狗 象 在这个阶段,如果我按键盘上的“E”键,文本搜索将正常工作,并且“大象”项被选中。但是,如果我按“Shift+E”,从球到大象的所有项目都会被选中,即Shift键用于扩展选择,而不是大写字母E。然而,由于我使用键盘进行搜索,

我有一个选择模式设置为Extended的WPF ListView(我需要保持它的扩展以实现其他功能)。我还使用TextSearch选项在此listview上启用了文本搜索

现在考虑一下,我在ListView中有以下5项:

  • 苹果
  • Ball==>这是当前选定的项目
在这个阶段,如果我按键盘上的“E”键,文本搜索将正常工作,并且“大象”项被选中。但是,如果我按“Shift+E”,从球到大象的所有项目都会被选中,即Shift键用于扩展选择,而不是大写字母E。然而,由于我使用键盘进行搜索,是否应该选择唯一的项目“大象”,并且Shift键应用于大写字母E而不是扩展选择?我们能设法做到这一点吗