简体   繁体   中英

WPF Extended Toolkit CheckComboBox doesn't display items

In my WPF application, I'm trying to use a CheckComboBox from the Extended Toolkit. The CheckComboBox has items, I can select them, and the selected items are correcticaly stored in a List. But the items in the CheckComboBox are blank, something like that :

[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

What's weird is that it work withs a basic ComBox, I can see my items

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.

It is not the right solution I guess but it solved by problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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