Create style for TextBlock in DataGridTextColumn

前端 未结 3 543
执笔经年
执笔经年 2020-12-10 04:00

I want to create a global style that sets the VerticalAlignment to Center for all TextBlock controls inside a DataGrid or

3条回答
  •  攒了一身酷
    2020-12-10 04:47

    Create a style as a static resource

    
        
    
    

    Then you can assign it to the ElementStyle of the DataGridTextColumn

    
    

提交回复
热议问题