Version

Change a Tool’s Appearance

In the ToolAppearances class there are a few appearance properties where you can control the look of the tools.

Tools

At Design Time

  1. Right click on the UltraToolBarsManager and choose Customize.

  2. In the tool tab choose one of your button tools.

  3. Open the SharedProps class then in the AppearanceSmall or AppearancesLarge property you will see all the above properties.

  4. Set some properties on each of them to see the different effects that you can achieve.

At Run Time

In Visual Basic:

Imports Infragistics.Win
...
Private Sub Change_a_Tools_Appearance_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraToolbarsManager1.Toolbars(0).Tools(2).SharedProps.AppearancesSmall. _
	  AppearanceOnToolbar.BackColor = Color.Beige
	Me.UltraToolbarsManager1.Toolbars(0).Tools(2).SharedProps.AppearancesSmall. _
	  HotTrackAppearance.BackColor = Color.Blue
End Sub

In C#:

using Infragistics.Win;
...
private void Change_a_Tools_Appearance_Load(object sender, EventArgs e)
{
	this.ultraToolbarsManager1.Toolbars[0].Tools[2].SharedProps.AppearancesSmall.
	  AppearanceOnToolbar.BackColor = Color.Beige;
	this.ultraToolbarsManager1.Toolbars[0].Tools[2].SharedProps.AppearancesSmall.
	  HotTrackAppearance.BackColor = Color.Blue;
}
shows how to change an ultratoolbarsmanager's tool appearance