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

Setting tab item content

1 Answer 81 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
G S S
Top achievements
Rank 1
G S S asked on 18 Jul 2011, 12:03 AM
Hi,

I am using the Silverlight controls with Silverlight 5 beta. However, how do I set a tab content item?

I've tried various ways, and even in the thread just below about tabcontent, but nothing seems to work without an error. :(

BTW, I am on Silverlight 4 and 5 SDK, but the VS2010 project is set to Silverlight 4. Is that a problem?


Thanks

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 20 Jul 2011, 03:54 PM
Hello Gurdeep,

I am not sure that I fully understand the nature of your issue. Bellow is an example how to create a very simple RadTabControl definition:

<telerik:RadTabControl Width="350" Height="350">
    <telerik:RadTabItem>
        <telerik:RadTabItem.Header>
            <Grid>
                <TextBlock Text="I am Header" />
            </Grid>
        </telerik:RadTabItem.Header>
        <telerik:RadTabItem.Content>
            <Grid Background="LightYellow">
                <TextBlock Text="I am Content" HorizontalAlignment="Center"
                        VerticalAlignment="Center" FontSize="36" />
            </Grid>
        </telerik:RadTabItem.Content>
    </telerik:RadTabItem>
</telerik:RadTabControl>

The above code results in the following:



More information on RadTabControl can be found here.

Regards,
Kiril Stanoev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TabControl
Asked by
G S S
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or