How to add back the sort arrow after applying background of Column headers

前端 未结 3 1377
天涯浪人
天涯浪人 2021-02-05 03:48

After applying background color to columnheaders, the sort arrow is missing. How to add it back?

3条回答
  •  梦毁少年i
    2021-02-05 04:09

    I think you're gonna have to re-template the DataGridColumnHeader and add it from there. Here's an example. You're gonna have to add a reference to PresentationFramework.Aero

    xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
    
    
        
            
            
        
    
    

提交回复
热议问题