Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1930
XamComboEditor template problem on SelectedItem
posted

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