How to Stretch WPF Tab Item Headers to Parent Control Width

后端 未结 11 1949
花落未央
花落未央 2020-11-29 23:17

Is there a way in XAML to cause the tab item headers to stretch across the width of the tab control?

For example, I have three tabs: red, blue and green. If I have a

11条回答
  •  执笔经年
    2020-11-29 23:39

    It is possible by binding the width to the ActualWidth of the parent tab control as shown below.

    I have wrapped it in a style to apply to all tab pages.

    
          
            
        
    
    
        
        
                    
     
    
    

提交回复
热议问题