DataGrid row content vertical alignment

后端 未结 9 923
借酒劲吻你
借酒劲吻你 2020-12-01 00:13

I have a regular DataGrid from WPF 4.0 RTM, where I put data from a database. In order to make clean & light style of DataGrid I use a tall/high rows and by

9条回答
  •  清歌不尽
    2020-12-01 00:26

    Complete solution of this issue at MSDN: Vertical alignment of DataGrid row content.

    In brief, in style-file set:

    
    
    

    In window file:

    
        
            
            
            
            
        
    
    

    This will give you a wanted result:

    alt text

提交回复
热议问题