Hello!
I am trying to get an image to show up next to a labeltool and is placed in the right side of menu. Below the label, I have a listtool with different items. Any suggestion someone?
I have added these two lines to be sure, and it works for othe type of tools in the menu like buttontools etc.
tbm.Tools("MRUProjectLabel").SharedProps.AppearancesLarge.Appearance.Image = Image.FromFile(ImagesFolder & "Menu\Open_32.png") tbm.Tools("MRUProjectLabel").SharedProps.AppearancesSmall.Appearance.Image = Image.FromFile(ImagesFolder & "Menu\Districts_24.png").
I know that I am missing something, but what ;-)
6087.WindowsFormsApplication33.zipHelllo! Thanks for your reply. I have made a few changes to the project, so show the real case.
- Upgraded to 18.2
- Used a labeltool in the menu, instead of a buttontool in the ribbon.
- Used a real 32x32 image.
Please check it on your side.
Thanks :)
Hello ,
Thank you for the update. looking into your code you are just missing the property 'ShowIconArea' set to true, to set the image in the labelTool.
your code would be like this:
ultraToolbarsManager1.Tools["labelTool1"].SharedProps.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageAndText;
ultraToolbarsManager1.Tools["labelTool1"].SharedProps.AppearancesSmall.Appearance.Image = Image.FromFile("../../images.png");
ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaRight.Settings.ShowIconArea = Infragistics.Win.DefaultableBoolean.True;
Please let m eknow if you need further assistance.
Sincerely,Divya JainAssociate Software Developer