Version

CurrentState Property (UltraExplorerBar)

Returns bit flags that represent the state of the control.
Syntax
'Declaration
 
Public ReadOnly Property CurrentState As UltraExplorerBarStates
public UltraExplorerBarStates CurrentState {get;}
Remarks

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.

Example
The following code shows how to use the control's CurrentState property and PerformAction methods to invoke a control action based on the control's state.

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);
		}
Requirements

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

See Also