This project is read-only.

Could the ImageCell keep the aspect ratio?


This is a great control. But there are something bad when we create an application on it and fill the image in cells. The image will fill all of the space in the cell.

I change the code of the CellType.cs like this:

if (Image != null)
dc.Graphics.DrawImage(Image, new Rectangle(0, 0, Image.Width, Image.Height));

Maybe there are more params like anchor, scale could be added to ImageCell. Thanks.


unvell wrote May 23, 2014 at 3:39 PM

Nice changes! Let me add a property which allows to choose a method to show an image, such as Stretch, Center, Zoom, Scale or Normal.

This changes will be released in the next 0.8.6 version.

unvell wrote May 26, 2014 at 9:31 AM

Add ViewMode property for ImageCell, and support to change image position by setting cell horizontal/vertical alignment.

Documentation has been updated:

(Image sector)