WPF DataGrid HeaderTemplate Mysterious Padding

前端 未结 2 1453
闹比i
闹比i 2021-01-21 05:17

I am placing a single button with an image in the header of a column of a DataGrid. The cell template is also just a simple button with an image.



        
2条回答
  •  轮回少年
    2021-01-21 05:42

    Using Padding="0,0.000001,0,0" seems to walk around their checking code and works (at least in .NET 4.0).

提交回复
热议问题