Hello,
We've just purchased your product.
Sofor I have encountered a issue with the image and text alignment of the ListBoxItems, shown in the following code snippet:
We've just purchased your product.
Sofor I have encountered a issue with the image and text alignment of the ListBoxItems, shown in the following code snippet:
Image image = this.GetImageFromImageList(menuItemData.ImageName);
image = ResizeImage(image,
new Size(32, 32));
RadListBoxItem result = new RadListBoxItem(menuItemData.Text);
result.Image = image;
result.DisplayStyle = Telerik.WinControls.
DisplayStyle.ImageAndText;
result.TextImageRelation =
TextImageRelation.ImageBeforeText;
result.TextAlignment =
ContentAlignment.MiddleLeft;
result.Alignment =
ContentAlignment.MiddleLeft;
result.ImageAlignment =
ContentAlignment.MiddleLeft;
The alignment settings don't have any visual effect, no matter what is set to them. My desire is to have the text alligned middle left as to its image. The Aligment however is always performed as TopLeft.
Please let me know how to solve this (if possible)
Kind regards,
Jack