According to this documentation http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamComboEditor_Working_with_ItemTemplate.html there must be an ItemTemplate Property in the XamComboEditor.
xmlns:igEditors=http://infragistics.com/Editors
<igEditors:XamComboEditor Theme="IGTheme" ItemsSource="{Binding Path=Codes}" >
<igEditors:XamComboEditor.ItemTemplate>
.... Cannot resolve Symbol ItemTemplate????
</igEditors:XamComboEditor.ItemTemplate>
</igEditors:XamComboEditor>
Referenced Assembly is InfragisticsWPF4.Editor.v12.1,version v4.0.30319
Everything works perfect so far, except that i cannot specify a DataTemplate for the Items.
Hello,
I have already answered in the following forum thread :
http://ko.infragistics.com/community/forums/t/75115.aspx
If you have any additional questions on this matter, let’s continue our discussion in the above forum thread.
ok, i think the subject has nothing to do with the difference between the WPF specific and the new shared XamComboEditor. (the post before in the silverlight forum was by mistake)
For now, like i said before i have a normal WPF XamcomboEditor from assembly InfragisticsWPF4.Editor.v12.1,version v4.0.30319 that does a good job in my application except for providing the ItemTemplate in Xaml. I'm exactly doing like here: http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamComboEditor_Working_with_ItemTemplate.html
The xaml designer just says "cannot resolve ItemTemplate". I cannot add a DataTemplate for the items, simply because it seems as if there is no ig:XamComboEditor.ItemTemplate property to assign a datatemplate to??! See first post.
I am sure, i am missing something obvious.
Thomas
Thank you for your feedback. You can change the ItemTemplate of the WPF specific XamComboEditor using the ‘ComboBoxStyle’ like e.g. :
<igEditors:XamComboEditor.ComboBoxStyle>
<Style TargetType="ComboBox">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Make}" Width="50" />
<TextBlock Text="{Binding Model}" Width="100" />
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</igEditors:XamComboEditor.ComboBoxStyle>
If you have any other questions on this matter, feel free to ask.
Is there a reason for this behavior ? IMO this makes it unnecessasry complicated
Hello Haggy,
I am not sure what exactly bothers you in this scenario. Most of the items controls(ListBox,ComboBox and etc.) use the same approach for predefining of the ItemTemplate. For more references please look into the following MSDN link :
http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.itemtemplate.aspx
Let me know, if you need any further assistance on this matter.