Content background transparency?

2 posts, 0 answers
  1. Jerome
    Jerome avatar
    87 posts
    Member since:
    Aug 2010

    Posted 12 Apr 2011 Link to this post

    Can't figure out how to make the background of the Content area transparent, so the background set on the item behind it shows through. There's nothing similar to ItemContainerStyle.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Apr 2011 Link to this post

    Hello Jerome,

    You can control the Background of the content of the tabs trhough the RadTabControl Background property. Therefore using the such a definition:
    <Window.Resources>
        <DataTemplate x:Key="HeaderTemplate">
                <TextBlock Text="{Binding Header}" />
        </DataTemplate>
        <DataTemplate x:Key="ContentTemplate">
            <TextBlock Text="{Binding Content}" />
        </DataTemplate>
    </Window.Resources>
    <Grid x:Name="LayoutRoot" Background="Green" >
        <telerik:RadTabControl x:Name="radTabControl"
                    ContentTemplate="{StaticResource ContentTemplate}"
                    ItemTemplate="{StaticResource HeaderTemplate}"
                    Background="Transparent"/>
    </Grid>
    will display the RadTabControl like so:


    Give this a try and let us know if this is what you had in mind.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top