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
120
cant set the itemTemplate on xamComboEditor
posted

I cant set the itemTemplate on the xamComboEditor. I tried a reqular combobox with success, but the propery does not appear when i try it in the combo editor. Look at code below, the combo box works fine, but the xamComboEditor has the error. Error 126 The attachable property 'itemTemplate' was not found in type 'XamComboEditor'. 

 

 

<UserControl x:

 

Class="quickSearchView"
xmlns=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x=
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d=
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:ig=
"http://schemas.infragistics.com/xaml"
xmlns:inf=
"clr-namespace:xT911Infrastructure;assembly=xT911Infrastructure"
mc:Ignorable=
"d" xmlns:igEditors="http://infragistics.com/Editors" Margin="10">


<Grid x:Name=
"layoutRoot">


<ComboBox ItemsSource=
"{Binding contacts}" Height="30" Width="250">
<ComboBox.ItemTemplate>
<DataTemplate>
<DockPanel>

<TextBlock
x:Name=
"TextBlock"
Text=
"{Binding Path=(inf:iContact.contactName)}"/>
</DockPanel>
</DataTemplate>

</ComboBox.ItemTemplate>
</ComboBox>



<igEditors:XamComboEditor HorizontalAlignment=
"Left" Margin="86,76,0,0" Name="XamComboEditor1" VerticalAlignment="Top"

>
<igEditors:XamComboEditor.itemTemplate>

</igEditors:XamComboEditor.itemTemplate>
</igEditors:XamComboEditor>
</Grid>


</UserControl>

  • 34510
    Offline posted

    Hi Toson1,

    Please let me know if you have any further questions.

  • 34510
    Offline posted

    Hi Toson1,

    It looks like the code is for a Silverlight application and your trying to use the InfragisticsWPF4.Editors assembly.

    If this is the case you should use the InfragisticsSL4.Controls.XamComboEditor assembly instead, then use the ig namespace you declared at the top of the xaml code so it looks like this: <ig:XamComboEditor>

    Let me know if you have any questions.