Is there an easy way to highlight the selected item on UltraExplorerBar at runtime? I need to be able to highlight an item when the user selects it.
I found a solution to the problem:
//variable Declarationsprivate Infragistics.Win.Appearance selectedItemAppearance;private UltraExplorerBarItem lastSelectedItem;
//Inside class constructorthis.selectedItemAppearance = new Infragistics.Win.Appearance();this.lastSelectedItem = null;this.selectedItemAppearance.BackColor = SystemColors.MenuHighlight; this.selectedItemAppearance.ForeColor = SystemColors.HighlightText;
//Event handlerthis.ultraExplorerBar1.ItemClick += new ItemClickEventHandler(ultraExplorerBar1_ItemClick);
private void ultraExplorerBar1_ItemClick(object sender, ItemEventArgs e){ if ( this.lastSelectedItem != null ) this.lastSelectedItem.Settings.AppearancesSmall.Appearance = null; this.lastSelectedItem = e.Item; e.Item.Settings.AppearancesSmall.Appearance = this.selectedItemAppearance;}