Skip to content

TabControl | TabItem Icon + Header Text #3194

Closed Answered by nicolaihenriksen
ZeroByteZDev asked this question in Q&A
Discussion options

You must be logged in to vote

@ZeroByteZDev What you're trying to do here is to make the header consist of multiple controls. That is definitely possible, but you need to specify it in a different manner. In the example below I have taken your first TabItem and changed the look of the TabItem.Header. Basically instead of "just" consisting of the PackIcon, I now set it as a StackPanel with both the icon and a text in it.

<materialDesign:Card>
  <TabControl HorizontalContentAlignment="Left" materialDesign:ColorZoneAssist.Mode="SecondaryMid" Style="{StaticResource MaterialDesignFilledTabControl}">
    <TabItem>
      <TabItem.Header>
        <StackPanel Orientation="Horizontal">
          <materialDesign:PackIcon Kind="Home

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZeroByteZDev
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