Child items

2 posts, 0 answers
  1. Voss Grose
    Voss Grose avatar
    81 posts
    Member since:
    Sep 2012

    Posted 02 Aug 2009 Link to this post

    I have a TabControl:
            <telerikNavigation:RadTabControl x:Name="tabControl" Width="675" Height="675">
                <telerikNavigation:RadTabItem Header="Main">
                <telerikNavigation:RadTabItem Header="Patio">

    I need to be able to add items (user controls) to the each tab at runtime.

    How is this done? Do the items get added to the TabControl and not the TabItem or do I need a panel or some other container control in each TabItem?

    I realize I'm probably just overlooking the obvious, but can't seem to figure it out.

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 03 Aug 2009 Link to this post

    Hello Voss,

    A simple solution will be to place a panel as the Content of the TabItem and then add/remove visuals to/from it. This way you will be able to add more than one item to the TabItem and it can be anything that can normally be placed in a Panel, including a UserControl.

    Hopefully this will work for you,

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top