'Declaration Public ReadOnly Property CurrentState As UltraExplorerBarStates
public UltraExplorerBarStates CurrentState {get;}
Use this property to determine if the control is currently in edit mode, whether an active UltraExplorerBarGroup or UltraExplorerBarItem exists etc.
Refer to the documentation for the UltraExplorerBarStates enumeration for a complete list of the possible states.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button6.Click ' If the ActiveItem is in the last group, activate the first Item in the ' previous Group. If ((Me.ultraExplorerBar1.CurrentState & UltraExplorerBarStates.ActiveItemIsInLastGroup) = UltraExplorerBarStates.ActiveItemIsInLastGroup) Then Me.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ActivateFirstItemInPreviousGroup) End If ' If the ActiveItem is in the first group, activate the first Item in the ' next Group. If ((Me.ultraExplorerBar1.CurrentState & UltraExplorerBarStates.ActiveItemIsInFirstGroup) = UltraExplorerBarStates.ActiveItemIsInFirstGroup) Then Me.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ActivateFirstItemInNextGroup) End If End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button6_Click(object sender, System.EventArgs e) { // If the ActiveItem is in the last group, activate the first Item in the // previous Group. if ((this.ultraExplorerBar1.CurrentState & UltraExplorerBarStates.ActiveItemIsInLastGroup) == UltraExplorerBarStates.ActiveItemIsInLastGroup) this.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ActivateFirstItemInPreviousGroup); // If the ActiveItem is in the first group, activate the first Item in the // next Group. if ((this.ultraExplorerBar1.CurrentState & UltraExplorerBarStates.ActiveItemIsInFirstGroup) == UltraExplorerBarStates.ActiveItemIsInFirstGroup) this.ultraExplorerBar1.PerformAction(UltraExplorerBarAction.ActivateFirstItemInNextGroup); }
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