How to style a WPF Expander Header?

后端 未结 3 684
误落风尘
误落风尘 2020-12-13 01:49

I would like to apply a style on a WPF Expander Header. In the following XAML I have an Expander but the style is for all of it not just for the header.

Thanks.

3条回答
  •  旧巷少年郎
    2020-12-13 02:32

    I have combined some XAML from Josh Smith and MSDN and came up with a solution. Indeed, the control (al least the header) must be retemplated.

    
        
            
    
                
    
                
                    
                        
                    
                
    
                
    
            
    
            
                
                    This is a textbox
                    
                
            
    
        
    
    

提交回复
热议问题