wpf中让DataGrid的表头居中显示:
<DataGrid.ColumnHeaderStyle>
<style TargetType="DataGridColumnHeader">
<setter Property = "HorizkontalContentAlignment" value="center">
</setter>
</style>
</DataGrid.ColumnHeaderStyle>
wpf DataGrid表头居中
最新推荐文章于 2024-05-02 21:49:27 发布