-
Hello, I'm trying to change the foreground header on tabItem. I want the text in white when is not selected. I use the MaterialDesignFillTabControl style with Custom ColorZoneAssist : <TabControl BorderThickness="0" Grid.Row="0" SelectedIndex="{Binding SelectedIndexMainTabControl}"
Margin="5,10,0,0" Style="{StaticResource MaterialDesignFilledTabControl}" materialDesign:ColorZoneAssist.Mode="Custom"
materialDesign:ColorZoneAssist.Foreground="#ff5a08"
materialDesign:ColorZoneAssist.Background="#1f2c44"
Padding="5,15,0,0" Grid.ColumnSpan="3">
<TabItem Header="Summary" > What I already did :
I think it's not something hard but I can't see it :/ |
Beta Was this translation helpful? Give feedback.
Answered by
Keboo
Dec 5, 2022
Replies: 1 comment 1 reply
-
Hi @MrStamina I pushed a small sample application here that shows how to do it. The key change is here: <TabControl
Style="{StaticResource MaterialDesignFilledTabControl}"
materialDesign:ColorZoneAssist.Mode="Custom"
materialDesign:ColorZoneAssist.Foreground="#ff5a08"
materialDesign:ColorZoneAssist.Background="#1f2c44">
<TabControl.ItemContainerStyle>
<Style TargetType="TabItem" BasedOn="{StaticResource MaterialDesignTabItem}">
<Style.Triggers>
<Trigger Property="IsSelected" Value="False">
<Setter Property="materialDesign:ColorZoneAssist.Foreground" Value="White" />
</Trigger>
</Style.Triggers>
</Style>
</TabControl.ItemContainerStyle>
...
</TabControl> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Keboo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MrStamina
I pushed a small sample application here that shows how to do it.
The key change is here: