Skip to content

TabControl - How do we customize the header? #2675

Closed Answered by Keboo
poralcode asked this question in Q&A
Discussion options

You must be logged in to vote

Right now the TabControl is a fairly recent addition so many of the customizations have not been flushed out.
For your items 2-4 you can get pretty close if you do something like this (you may want to tweak some of the brushes to suit your needs):

<TabControl Width="300" materialDesign:ColorZoneAssist.Mode="Light">
<TabControl.Resources>
    <SolidColorBrush x:Key="MaterialDesignLightForeground" Color="{DynamicResource PrimaryHueMidBrushColor}" />
</TabControl.Resources>
<TabItem BorderThickness="0,0,10,0">
    <TabItem.Header>
    <TextBlock Foreground="{DynamicResource MaterialDesignPaper}" Text="TAB 1" />
    </TabItem.Header>
    <TextBlock Margin="8" Text="PrimaryLight Tab 1" />
</Ta…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ElieTaillard
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2655 on May 09, 2022 07:53.