'Declaration Public Property Container As UltraExplorerBarContainerControl
public UltraExplorerBarContainerControl Container {get; set;}
Note: in order for an UltraExplorerBarItem to be checked its Style property must be set to ‘1 – StateButton’.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button27.Click ' For every Group that has the ControlContainer style, set the backcolor of the container to red. Dim group As UltraExplorerBarGroup For Each group In Me.ultraExplorerBar1.Groups If (group.SettingsResolved.Style = GroupStyle.ControlContainer) Then group.Container.BackColor = Color.Red End If Next End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button27_Click(object sender, System.EventArgs e) { // For every Group that has the ControlContainer style, set the backcolor of the container to red. foreach(UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups) { if (group.SettingsResolved.Style == GroupStyle.ControlContainer) group.Container.BackColor = Color.Red; } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2