简体   繁体   English

WPF扩展工具包CheckComboBox不显示项目

[英]WPF Extended Toolkit CheckComboBox doesn't display items

In my WPF application, I'm trying to use a CheckComboBox from the Extended Toolkit. 在我的WPF应用程序中,我试图使用扩展工具包中的CheckComboBox。 The CheckComboBox has items, I can select them, and the selected items are correcticaly stored in a List. CheckComboBox有项目,我可以选择它们,并且所选项目正确存储在列表中。 But the items in the CheckComboBox are blank, something like that : 但是CheckComboBox中的项目为空白,类似于:

[x] [X]

[x] [X]

[x] [X]

[x] [X]

Here is my code : 这是我的代码:

<extToolkit:CheckComboBox Name="cbTypes" 
ItemsSource="{Binding AllTypes}" 
SelectedItemsOverride="{Binding ChosenTypes}" 
DisplayMemberPath="Name"/>

AllTypes is an array of objects, the objects have a Name (string) property and 2 other string property AllTypes是一个对象数组,这些对象具有Name(字符串)属性和2个其他string属性

What's weird is that it work withs a basic ComBox, I can see my items 奇怪的是,它可以与基本的ComBox一起使用,我可以看到我的物品

Any idea? 任何想法?

Thanks 谢谢

So, I couldn't find any solution... I made a copy of my list of objects into a list of strings with only the names, then I has able to see the items in the checkcombobox. 因此,我找不到任何解决方案...我将对象列表复制到仅包含名称的字符串列表中,然后能够在checkcombobox中看到项目。

It is not the right solution I guess but it solved by problem 我猜这不是正确的解决方案,但可以解决问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM