Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
Group and Item Images
posted

I've got a couple Qs.

I'm using the ExplorerBar and I'm having trouble with images.  I want a separate image for each group, and for each item in those groups.  I can't seem to make that happen.  I've looked at the articles and other forum posts but nothing seems to work.  I created an image list and assigned each group and each item to an image, but still nothing.  I've done it for both Large and Small appearances.  

Any ideas?

Also, I'd like to use the ribbon control but it's not in my control list.  Does it not come with winforms?

Parents
No Data
Reply
  • 7535
    Offline posted

    Hello Sean,

    Thank you for posting. I have attached a simple sample application to demonstrates adding images to the ExplorerBar header and to the items.

    In order to add image to the item you could use this code:

    aGroup.Items[0].Settings.Enabled = DefaultableBoolean.False;
    aGroup.Items[0].Settings.AppearancesSmall.Appearance.Image = myImage;

    To add an images to the group header you could use this code:

    foreach (UltraExplorerBarGroup group in ultraExplorerBar1.Groups)
    {
    group.Settings.AppearancesSmall.HeaderAppearance.Image = myImage; 
    }
    

    In the sample I have also demonstrated how can you change the image of the expansion indicator, if you are interested .

    Please let me know if you need further assistance.

    Sincerely,
    Divya Jain
    Associate Software Developer

Children