Setting tab item content

2 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 17 Jul 2011 Link to this post

    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
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 20 Jul 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top