How do I enable text wrapping on all column headers?

前端 未结 5 1098
无人及你
无人及你 2021-01-03 18:14

How does one enable text wrapping on all column headers of a DataGrid, without disabling the other default header functionality? Such as column resizing, sort d

5条回答
  •  旧巷少年郎
    2021-01-03 18:42

    You could create a global Style for your column headers. Without any example mark-up I don't know the syntax, but it should look something like this:

    
    

    Since the Style is key-less, it will automatically be applied to all of your column headers. And styles will not override any locally set properties, so it won't "disable" any existing header functionality.

提交回复
热议问题