How to center the content of cells in a data grid?

后端 未结 10 951
春和景丽
春和景丽 2020-12-30 22:58

I set the min height of a datagrid that way:


After feeding the datagrid with datas, the text in each c

10条回答
  •  春和景丽
    2020-12-30 23:10

    This style will set the VerticalAlignment to Center for all DataGridCells without needing to be applied explicitly.

    
        
    
    

    I find this to be the most elegant solution.

提交回复
热议问题