WPF Mulipleitems在Combox中选择. [英] WPF Mulipleitems select in Combox.

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

问题描述

大家好,我正在使用mvvm模式在wpf上工作.我需要从组合框中选择多个项目.需要查找组合框中的项目.(例如:如果组合框有500条记录,则意味着我可以编辑以在cobobox中搜索任何记录)

Hi all, i am in working on wpf with mvvm pattern.I need to select multiple Items from combobox. need to seachable the items what are in combobox.(ex:if combobox have 500 records means i can able Edit to search in cobobox any of the record)

选择cobobox后,我可以单击搜索按钮,这些记录将显示在网格中.

After selecting the cobobox,I can click searchbutton those records will be displayed in grid.

我该怎么做.请分享任何代码.下面是我的代码.但是效果不佳.从我的代码下面,我只能在组合框中选择单个项目.以及请参见屏幕截图.

How can I do this. Please share any codes. Below is my code. But is not working fine. From below my codes I can able select only single item in combobox. As well as please see the screenshots.

推荐答案

现在我需要在不使用第三方工具的情况下从组合框中选择多个项目.
Now  i need to select multiple items from the combobox without using third party tool.

您的要求是互斥的. WPF组合框不支持多选.

Your requirements are mutually exclusive. The WPF Combobox does not support multiselection.


这篇关于WPF Mulipleitems在Combox中选择.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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