WPF Change Background color of a Combobox

前端 未结 5 595
逝去的感伤
逝去的感伤 2020-11-27 06:31

In my WPF app I just want to change the background color of the Combo box. I don\'t mean the dropdown, I want is just whatever item is selected a background is set. Like se

5条回答
  •  Happy的楠姐
    2020-11-27 06:41

    On windows 8 or 10 this is proper WPF way without redesign the Combobox and 100% customizable.

    Just copy paste and test! :)

    Click here to see how look the ComboBox

      
    
    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    
    
        
        
            
                
                    
                    
                
                
                    
                        
                            
                                
                                    
                                        
                                    
                                    
                                
                            
                        
                    
                
                
                
            
            
                
                    
                    
                
                
                    
                
                
                    
                        
                        
                    
                    
                
                
                    
                    
                
            
        
        
        
        
            
                
                    
                    
                
                
                    
                        
                            
                                
                                    
                                        
                                    
                                    
                                
                            
                        
                    
                
                
                
                    
                
            
            
                
                    
                
                
                    
                
                
                    
                    
                
                
                    
                
                
                    
                        
                        
                    
                    
                
                
                    
                    
                
            
        
        
    
    
    
    
        
            
                
                
            
            One
            Two
            Three
         
    
    
    
    

提交回复
热议问题