WPF Change Background color of a Combobox

前端 未结 5 601
逝去的感伤
逝去的感伤 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条回答
  •  被撕碎了的回忆
    2020-11-27 06:38

    Try this

       //Put this resourse n Window.Resources or UserControl.Resources
       
          
             
                
                
             
          
       
    
        
    
        
            
                
                    
                    
                
                
                
                
            
        
    
        
            
        
    
    
    
     
     
        
        
    
     
    

    Here is the complete style that you can change : http://msdn.microsoft.com/en-us/library/ms752094%28v=VS.85%29.aspx

提交回复
热议问题