How to create/make rounded corner buttons in WPF?

前端 未结 12 2138
礼貌的吻别
礼貌的吻别 2020-12-04 11:39

I need to create a rounded corner glossy button in WPF. Can anyone please explain me what steps are needed?

12条回答
  •  抹茶落季
    2020-12-04 11:57

    This is an adapted version of @Kishore Kumar 's answer that is simpler and more closely matches the default button style and colours. It also fixes the issue that his "IsPressed" trigger is in the wrong order and will never be executed since the "MouseOver" will take precedent:

    
                
                    
                        
                            
                                
                                
                            
                        
                        
                            
                                
                                
                            
                            
                                
                            
                            
                                
                            
                        
                    
                
            
    

提交回复
热议问题