Styling the indeterminate state of a WPF checkbox

后端 未结 9 1942
情话喂你
情话喂你 2021-02-04 07:30

I want to style the indeterminate state of a WPF checkbox. We have a treeview control with checkboxes, and we want the indeterminate state to represent that some descendants are

9条回答
  •  一个人的身影
    2021-02-04 07:35

    The below code is a sample check box with three state.

    
    
        
    
        
    
        
    
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                    
                    
                
            
        
    
        
    
        
    
        
    
        
    
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
    
        
    
        
    
        
        
    
        
        
    
    
        
        Hello
            asdfsdaf
            
    
    

    The best software to modify the existing look and feel of the controls is Expression Blend. If you want to change the existing look and feel and you have to modify the Control Template of the control.

提交回复
热议问题