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

Child items

1 Answer 57 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Voss Grose
Top achievements
Rank 1
Voss Grose asked on 03 Aug 2009, 01:36 AM
I have a TabControl:
        <telerikNavigation:RadTabControl x:Name="tabControl" Width="675" Height="675">
            <telerikNavigation:RadTabItem Header="Main">
            </telerikNavigation:RadTabItem>
            <telerikNavigation:RadTabItem Header="Patio">
            </telerikNavigation:RadTabItem>
        </telerikNavigation:RadTabControl>

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.
Thanks,
Voss.


1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 03 Aug 2009, 10:30 AM
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,
Miroslav
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.
Tags
TabControl
Asked by
Voss Grose
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or