This is a migrated thread and some comments may be shown as answers.

Error 26 in Output window

1 Answer 128 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 10 Dec 2012, 04:20 PM

If I use your RadTabControl, I get error 26 in the Output window. Why?

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadTabItem'



<telerik:RadTabControl x:Name="tabControl" Grid.Row="1" VerticalAlignment="Top"
                               DisplayMemberPath="Content" DropDownDisplayMode="Visible" ScrollMode="Viewport">
   <telerik:RadTabItem />
</telerik:RadTabControl>

I copied the Windows 7 theme from \RadControls for WPF Q3 2012\Themes.Implicit\WPF40\Windows7\Themes:

<Window.Resources>
   <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
         <ResourceDictionary Source="../Themes/Telerik.Windows.Controls.Navigation.xaml"/>

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 13 Dec 2012, 01:31 PM
Hello Kristoffer,

Your issue could be caused of the use of static RadTabItems in combination with properties which are designed to be used in data-binding scenarios ( like ItemTemplate and ItemTemplateSelector ). Can you please try to remove the XAML defined RadTabItem and see if the issue is reproducible and if so is it possible for you to send us the project which reproduces the error? This way we will be able to further investigate this issue. Thank you for your cooperation.

Regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TabControl
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or