Hi,
XamComboEditor internally uses a ComboBox in its edit template. You can specify a style to apply to this combo box using the XamComboEditor's ComboBoxStyle property. This is where you can specify any properties like the ItemTemplate that you want to apply to the combo box.
Hope this helps,
Sandip
Can we get a more elaborate response.
I'm very confused as to how to apply an Items Template for when the XamComboEditor is expanded and then show a different Template to when it's closed. It seems that the ComboBox control does this rather easy and I'm wondering why it seems harder to do using the XamComboBox control.
Thanks
Hi, could you post a xaml example with a DataTemplate which show two column.
something like this but works :)
<Control.Resources>
<Style x:Key="dtOrganizationUnitParent">
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="2">
<TextBlock Text="{Binding Path = OUN_OUN_SHORTNAME}" Width="100" />
<TextBlock Text="{Binding Path = OUN_OUN_DESCRIPTION}" Width="160" />
</StackPanel>
</DataTemplate>
</Style>
</Control.Resources>
<igEditors:XamComboEditor Name="parentCbo" ValueType="{x:Type sys:String}" Grid.Row="2" Grid.Column="1" VerticalAlignment="Top"
ItemsSource="{Binding Path=OrganizationUnitParentCollectionView}"
Value="{Binding Path=OUN_OUN_OUN_OUN_P_ID.Value}"
ComboBoxStyle="{StaticResource dtOrganizationUnitParent}"
>
</igEditors:XamComboEditor>