In am using the UltraToolbarsManager to get the Office 2007 Ribbon. I can add a Button tool to the ToolAreaLeft of the Ribbon's ApplicationMenu, and the tool's image will display with its caption. However, if I add the same tool to the ToolAreaRight, I cannot get the image to display.
I am using NetAdvantage for .NET 2008 Vol. 1 CLR 2.0
John
Hi!
I can't get it to work for some reason. I have tried the code below but it fails. I have played around with the appearances and different properties but the images never show.
What am I doing wrong?
toolBarManager.Ribbon.ApplicationMenu.ToolAreaRight.Settings.ShowIconArea = DefaultableBoolean.True;
var recentOrderButtonTool = new ButtonTool("ZZZYYY");recentOrderButtonTool.SharedProps.Tag = myObject;recentOrderButtonTool.SharedProps.Caption = "";recentOrderButtonTool.ToolClick -= ButtonToolClick;recentOrderButtonTool.ToolClick += ButtonToolClick;recentOrderButtonTool.SharedProps.DisplayStyle = ToolDisplayStyle.ImageAndText;Infragistics.Win.Appearance app = new Infragistics.Win.Appearance();app.Image = myImage; recentOrderButtonTool.SharedProps.AppearancesSmall.Appearance = app;recentOrderButtonTool.SharedProps.AppearancesLarge.Appearance = app;recentOrderButtonTool.SharedProps.AppearancesSmall.AppearanceOnMenu.Image = myImage;recentOrderButtonTool.SharedProps.AppearancesLarge.AppearanceOnMenu.Image = myImage; toolbarsManager.Ribbon.ApplicationMenu.ToolAreaRight.Tools.AddTool(recentOrderButtonTool.Key);
Kind Regards
/Per Hederos
By default the ToolAreaRight doesn't show its icon area. Set the ToolAreaRight.Settings.ShowIconArea to True.