How to style ComboBox Background on Mouse Hover?

前端 未结 1 1868
孤独总比滥情好
孤独总比滥情好 2020-12-21 07:26

I have a Rounded Border that contains a ComboBox


   
      

        
1条回答
  •  余生分开走
    2020-12-21 07:55

    Check your Previous Posts asking the same

    Unable to style WPF ComboBox on Mouse Hover

    How to change ComboBox's Background Property during Mouse Hover

    EDIT

    Use like this. Below is the default controltemplate of the combobox. Note the commented line of code for your requirement

       
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                        
                        
                    
                
            
    
            
    
            
    
            
    
            
    
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
                
                    
                        
                        
                    
                
            
    
            
    
            
    
            
    
            
            
    
            
    
            
                
                    
                        
                        
                    
                    
                    
                    
                
                
                    
                    
                        
                    
                    
                        
                        
                        
                        
                    
                
            
    
            
                
            
    
            
    
        
    

    0 讨论(0)
提交回复
热议问题