Hi,
I have an explorer bar control to which I assign an icon as follow. The style of the explorerbar is set ControlContainer.
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
ebAssociatedTaskItems.Groups["Notes"].Settings.AppearancesSmall.HeaderAppearance = appearance1;
The icon is 16x16.
As can been seen in the attached file, the group header increases in size. In addition, the icon is not displayed. Is there any other property I should be setting?
Cheers
Peter
Nice - didt know about this one!
Adam
Thanks
A System.Drawing.Icon must be converted to a System.Drawing.Bitmap before assigning it to the Image property. Also note that any bitmaps created in this fashion should be disposed of as they are GDI+ resources.
Hi Brian,
Thanks for the tip on the property. Unfortunately, the icon I'm specifying is not showing up. If I assign an icon at design time, the icon appears. However, if I use the following code
ebAssociatedTaskItems.Groups[NoteGroupKey].Settings.AppearancesSmall.HeaderAppearance = appearance1;
no icon is displayed. the application is using a Application styling.
Any thoughts?
The size at which the header images are displayed is determined by the UltraExplorerBar.ImageSizeLarge or UltraExplorerBar.ImageSizeSmall properties, depending on the value returned from the UltraExplorerBar.UseLargeGroupHeaderImagesResolved property. You can set the UltraExplorerBar.UseLargeGroupHeaderImages property explicitly to tell the control which image size to use for the group headers, and you can set the ImageSizeSmall/ImageSizeLarge properties to display the images at a particular size.