Want all the default styling but the Header FontWeight Bold when the TabItem IsSelected
FontWeight Normal when the TabItem is not selected
<TabItem.Header>
<TextBlock>Header Text</TextBlock>
</TabItem.Header>
Have found some examples but cannot make any work
Apply
DataTrigger
on TextBlock to see if parentTabItem
is selected and setFontWeight
toBold
if it evaluates out to be true.Also you can have that style on
TabItem
as well but since you mentionedTextBlock
in question i am assuming you are doing more styling with TextBlock in there for Header.You can put that in style to resuse it for other tabItems -