hi
I'm using a XamComboEditor in a Child window with a custom ItemTemplate. Here is the code:
<ig:XamComboEditor Grid.Row="5" Grid.Column="1" Margin="10,0,0,0" HorizontalAlignment="Left" Name="cboUser" VerticalAlignment="Center" Width="250" DisplayMemberPath="Name" EmptyText="Select..." SelectionChanged=" cboUser_SelectionChanged" TabIndex="6" >
<ig:XamComboEditor.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Name, Mode=OneTime}" />
<TextBlock Text=" " />
<TextBlock Text="{Binding Path=Surname, Mode=OneTime}" />
</StackPanel>
</DataTemplate>
</ig:XamComboEditor.ItemTemplate>
</ig:XamComboEditor>
When i click on the arrow and see the DropDown all the Items are shown with Name and Surname as from template.
The problem is that when i select an Item, the selected Item is shown only with "Name" not "Name Surname" as per template.
How can i solve this issue????
Thank you
Could somone help me please ??
Hi,
ItemTemplate is applied only for the items in the dropdown. You could create a FullName property on your underlying data. Then set DisplayMemberPath to be the FullName.
Hope this helps,