Hi Jake!
Snoop to the rescue!
Now that you updated the question I found an interesting code in the DataGridHeaderBorder.cs:
protected override Size ArrangeOverride(Size arrangeSize)
{
//...
if (padding.Equals(new Thickness()))
{
padding = DefaultPadding;
}
//...
child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
}
Where DefaultPadding isn't 0... Even though they don't use standard Padding they arrange the child slightly moved.
How to fix this? Maybe writing your own template for the table header will do the trick. Or you could try negative margins for the image. Don't like neither of this approaches. But I can't find anything better yet.
Anvaka
2010-06-09 10:00:33