none
Cosmopolitan Shell change Text of a TabItem

    Question

  • Hi all,

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

    http://social.msdn.microsoft.com/Forums/en-US/lsextensibility/thread/8e2740af-a7e5-443b-967e-90f378698dad

    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}">
                                    <Grid>
                                        <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"/>
                                    </Grid>
                                </Border>
                                <Border x:Name="DisabledVisualTopUnSelected" Background="#8CFFFFFF" CornerRadius="3,3,0,0" IsHitTestVisible="false" Opacity="0"/>
                            </Grid>

    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 :)

    Thanks!

    Thursday, February 28, 2013 12:53 PM