Hi,
It would be useful to have an alignment property for this control. This property would be applicable to ImageSizeMode.Normal and ImageSizeMode.ZoomImage enumerations.
Thanks,
Stefan
XRPictureBox - Provide the capability to specify image alignment
Answers approved by DevExpress Support
We have implemented the functionality described in this ticket. It will be included in our next update(s).
Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.
To provide this functionality, we have added an ImageAlignment property of the DevExpress.XtraPrinting.ImageAlignment enumeration type to the XRPictureBox report control.
This property has effect only if an XRPictureBox control's ImageSizeMode is set to ImageSizeMode.Normal, SizeMode.Squeeze or ImageSizeMode.ZoomImage.
Hi Stefan,
We've examined this problem with our developers, and decided to not implement this suggestion at this time.
You can accomplish this task by using the XRPanel control. Please review the attached project.
Thanks,
Andrew
Hi Andrew,
Thank you for your reply. However, I failed to see how to accomplish the alignment in your sample. Say I wished to right align the contents in a picture box having the zoom sizing?
Thanks,
Stefan
Hi Stefan,
For this scenario, you simply need to get the image size, adjust the height or width of a control based on ratio between size of a control and image.
Then, shift it, if the height ratio or bigger than the width ratio.
Thanks,
Andrew