Bug: btn.ImageAlign

0
0

 

Some bug with the alignment of the image with text on the button.

 

For example:

btn.TextImageRelation = TextImageRelation.ImageBeforeText

btn.ImageAlign = Drawing.ContentAlignment.MiddleLeft
btn.TextAlign = Drawing.ContentAlignment.MiddleLeft

 

Shows the icon on the left and the text on the center.

 

If I set to MiddleRight, the icon shows on the center and also the text.

 

So… is a litle problem with the alignment in general.

 

  • You must to post comments
0
0

Hi Mark,

The alignment seems correct. It works in a grid, see image below. The TextImageRelation determines which grid is used by the Image and the Label inner widgets. The Alignment determines which cell. You can restrict the borders of the grid by setting the padding. The cells are expanded and compressed automatically depending on the content. It’s a double grid layout.

 

Best,

Luca

 

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.