Tab Item and Tab Control Border Style

前端 未结 4 1772
庸人自扰
庸人自扰 2021-01-01 16:23

How do I style the Tab Control Border so that the selected Tab Item does not have a line underneath it?

\"WPF

4条回答
  •  青春惊慌失措
    2021-01-01 16:39

    Instead of modifying tabcontrol template, you may as well just modify the TabItem template, by adding two lines to cover up the border, and using minus margins for covering up.

    (Please take a look at "TopLineCover" and "BottomLineCover" borders.)

    
    

提交回复
热议问题