Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: CheckComboBox DisplayMemebrPath problem [20919]

$
0
0
When selecting an item, the combobox shows exactly the right string. But while the droppbox is open, the named displayed in the droppbox are all set to the name of the entity in ItemSource.
This is my xaml:
```
<xctk:CheckComboBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,2,5,2" VerticalAlignment="Stretch" ItemsSource="{Binding Genders}" SelectedItemsOverride="{Binding SelectedGenders}" DisplayMemberPath="Title"/>
```
Also when I use below ItemTemplate droppbox shows right string and combobox shows selected entity names!
```
<DataTemplate x:Key="DisplayTemplate" DataType="{x:Type model:CMN_KeyValue}">
<TextBlock Text="{Binding Title}"/>
</DataTemplate>

<xctk:CheckComboBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,2,5,2" VerticalAlignment="Stretch" ItemsSource="{Binding Genders}" SelectedItemsOverride="{Binding SelectedGenders}" ItemTemplate="{StaticResource DisplayTemplate}"/>
```
I use 2.1 version
Comments: ** Comment from web user: ShahramShobeiri **

Thanks for your answer,

I exactly write your code in my project, and it does not worked!
For double check I write your code in a new project and it worked correctly!!!!!!
I think this control has a conflict with some of other libraries in my project. I am using [MahApps](http://mahapps.com/) and maybe it cause the problem.


Viewing all articles
Browse latest Browse all 4964

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>