Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Centered Image and Text on a button
posted

I can create a column with a button in it (Infragistics.Win.UltraWinGrid.ColumnStyle.Button) and I can place both text and an image on the button.

 If the horizontal alignment is set to left for both the image and the button text, then the button text appears right to the right of the image.  This looks right to me.  But if I set the alignment to center for both, then the button appears on top of the text (or the other way around).  Obviously this looks terrible.

 How can I get the image and text to be side-by-side, but with there "combined width" centered on the button?  This would be the centered version of what you get with the left alignment option.

 

thanks