Error 26 in Output window

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    30 posts
    Member since:
    Oct 2012

    Posted 10 Dec 2012 Link to this post

    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 />

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

             <ResourceDictionary Source="../Themes/Telerik.Windows.Controls.Navigation.xaml"/>
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 13 Dec 2012 Link to this post

    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.

    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top