Cosmopolitan Shell change Text of a TabItem

Category: visual studio lsextensibility


LaurentzT on Thu, 28 Feb 2013 12:53:59

Hi all,

Like in my previous thread I would like to change the text inside a TabItem.

So I found this file: TabControlStyles.xaml. So I looked for a TextBlock:

<Grid x:Name="TemplateTopUnselected" Visibility="Collapsed">
                            <Border x:Name="BorderTop" Background="{StaticResource TabControlTabBackgroundBrush}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                                    <ContentControl x:Name="HeaderTopUnselected" Cursor="{TemplateBinding Cursor}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" IsTabStop="False" VerticalAlignment="Center" Margin="15,0" />
                                    <TextBlock TextWrapping="Wrap" Text="{Binding Path=Content, Converter={StaticResource TranslateStringConverter}}" Margin="15,0" Foreground="{StaticResource EmphasisFontBrush}" Opacity="0"/>
                            <Border x:Name="DisabledVisualTopUnSelected" Background="#8CFFFFFF" CornerRadius="3,3,0,0" IsHitTestVisible="false" Opacity="0"/>

But when I use a converter it won't work... I'm thinking that this is not the correct TextBlock... Any idea where I can find the correct one?


I want to change the text in the black box, as you can see is everything else ok :)