I can't get this to show any data:
<igEditors:ComboBoxItemsProvider x:Key="Test"> <ItemsControl ItemsSource="{Binding Path=DataContext.MedSolChecklistProtocolFields, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"> <ItemsControl.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding ProtocolDescription}"/> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </ItemsControl.GroupStyle> <ItemsControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding LabelText}"/> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </igEditors:ComboBoxItemsProvider> <Style x:Key="OverrideFieldStyle" TargetType="{x:Type igEditors:XamComboEditor}"> <!--<Setter Property="ItemsSource" Value="{Binding Path=DataContext.MedSolChecklistProtocolFields, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"/> <Setter Property="DisplayMemberPath" Value="LabelText"/> <Setter Property="ValuePath" Value="ChecklistFieldID"/>--> <Setter Property="ItemsProvider" Value="{StaticResource Test}"/> </Style>
Hello Paul,
Thank you for your post. I have been looking into it and I can say that the result you have is expected, since the XamComboEditor is not an ItemsControl and you are not supposed to set the ComboBoxItemsProvider like this. Here you can read more about how to do it:
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=InfragisticsWPF4.Editors.v12.1~Infragistics.Windows.Editors.ComboBoxItemsProvider.html
Also I can say that the XamComboEditor has ItemsTemplate Property which you can set to define how the items look.
Hope this helps you.