Hi All,
I am adding an image to a cell and aligning it to the top left hand corner using the ImageHAlign and ImageVAlign of the cells Appearance object. My problem is that there is still a small gap between the left hand side of the image and the cells left border, is there anyway that I can get rid of this gap?
I'm aware of the CellPadding property on the grid but I only want to reduce the padding for individual cells.
Thanks in advance,
Denis.
Hi Denis,
If CellPadding is no good for your particular requirements, then the only other option would be to use a CreationFilter to move the ImageUIElement within the cell.
Thanks Mike,
I'm now using a creationfilter and implementing the AfterCreateChildElements method. In this I am identifying the ImageUIElement and reducing the X co-ordinate of it's RectInsideBorders property by 1 so that the image is against the left hand edge of the cell, at least I thought that would do it but it doesn't seem to be having any effect on the position of the image. Is there a specific way I need to reposition the image?
Denis