Tab Item and Tab Control Border Style

前端 未结 4 1775
庸人自扰
庸人自扰 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 17:03

    The XAML below is how I have overridden the TabControl to solve this problem. The key piece of info is the Margin property of the HeaderPanel. You will see that the bottom margin is -1, which shifts it down just enough to cover up that line.

        
            
    
                
                    
                        
                            
                            
                        
    
                        
    
                        
    
                            
                                
                            
    
                            
                                
                            
    
                            
                        
                    
                
            
        
    
    

提交回复
热议问题