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

Content background transparency?

1 Answer 189 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 12 Apr 2011, 11:18 PM
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.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Apr 2011, 09:36 AM
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
Tags
TabControl
Asked by
Jerome
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or