How to make WPF TabItem Headers' Background transparent?

前端 未结 1 1975
说谎
说谎 2021-01-28 19:21

I have a TabControl with a few TabItems. Each TabItem has a Grid with a TextBlock and one Image, which has transparent areas, in it.

My goal is to have the Text and the

1条回答
  •  鱼传尺愫
    2021-01-28 20:08

    You will need to make a custom TabItem ControlTemplate to do so.

    Here is a slightly modified TabItem ControlTemplate (slightly modified from the default one):

    
    
    
    
    
    
    
    

    You'll probably need to modify it a bit to show what TabItem is selected (in the Trigger on IsSelected).

    0 讨论(0)
提交回复
热议问题