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.
Using Padding="0,0.000001,0,0" seems to walk around their checking code and works (at least in .NET 4.0).