Hi everybody,
i place an Image into the Value of an UltraListViewSubItemColumn as you can see below. The "Nummer" Column is the Main Column of the ListView...
The Image has definitely 16x16 Pixel but it looks like about 8x8 in the ListView...
The Data Type of the UltraListViewSubItemColumn is System.Image
Does anyone know a setting that it will be shown in the correct size?
Item height is dictated by the font and image size of the items, so a sub-item's image is sized to fit in that area. There is some padding within the content area, but only a pixel or two so I'm not sure why a 16 x 16 images would be shrunk by that much.
any ideas?
I wrote a verry simple demo application to demonstrate the behaviour...
Here is the Code:
this.ultraListView.View = UltraListViewStyle.Details; this.ultraListView.ViewSettingsDetails.ImageList = this.imageList; this.ultraListView.ViewSettingsDetails.ImageSize = new Size(16, 16); this.ultraListView.ViewSettingsDetails.FullRowSelect = true; var subColumn = new UltraListViewSubItemColumn(); subColumn.SubItemAppearance.ImageHAlign = HAlign.Center; subColumn.SubItemAppearance.ImageVAlign = VAlign.Middle; subColumn.VisibleInDetailsView = DefaultableBoolean.True; subColumn.VisiblePositionInDetailsView = 0; subColumn.DataType = typeof(Image); subColumn.Width = 20; this.ultraListView.SubItemColumns.Add(subColumn); this.ultraListView.MainColumn.VisiblePositionInDetailsView = 1; var subItems = new UltraListViewSubItem[1]; subItems[0] = new UltraListViewSubItem(); subItems[0].Value = this.imageList.Images[0]; this.ultraListView.Items.Add(new UltraListViewItem("Test", subItems));