WPF DataGrid style-Silverlight DataGrid?

前端 未结 5 888
予麋鹿
予麋鹿 2020-12-14 17:39

That\'s not a secret: Silverlight\'s DataGrid default style is beautiful while WPF\'s is poor.

Instead of reinventing the wheel let me ask the community

5条回答
  •  隐瞒了意图╮
    2020-12-14 18:16

    I voted for both of the connect site bugs too, this really should follow the system theme properly by default!

    However in the mean time I found a useful post by Malav Dhalgara which includes the following example that can be used to enable Aero theme's for controls in the WPFToolkit. Assuming from the date that Shimmy posted this question that this example wasn't comming from the DataGrid in .NET 4.0 but I could be wrong and maybe it was from one of the beta's or RCs. Anyway here is one example workaround for those using the WPFToolkit.

            
                
    
                    
                    
    
                    
    
                        
                        
                                                     Aero.NormalColor
    
                        
                                                     Aero.NormalColor
    
                        
                                                     Aero.NormalColor
    
                   
                
            
    

提交回复
热议问题