Version

Style Property (UltraExplorerBar)

Returns/sets the style of control.
Syntax
'Declaration
 
Public Property Style As UltraExplorerBarStyle
public UltraExplorerBarStyle Style {get; set;}
Remarks

The style of the UltraExplorerBar determines which of five supported behaviors are used.

The '0 - ExplorerBar' style emulates the behavior of the Explorer Bar in Windows XP which allows zero or more UltraExplorerBarGroups to be expanded at any given time. UltraExplorerBarGroups take as much space as they need to display their UltraExplorerBarItems, and a scrollbar is displayed to scroll the entire contents of the control if there is insufficient space.

The '1 - Listbar' style emulates the behavior of the Listbar in Outlook which allows 1 and only 1 UltraExplorerBarGroup to be expanded at any given time. The expanded UltraExplorerBarGroup has is allocated a fixed amount of space to display its UltraExplorerBarItems. If more space is needed, scroll buttons are displayed in the UltraExplorerBarGroup's UltraExplorerBarItem area to allow scrolling of UltraExplorerBarItems within the UltraExplorerBarGroup.

The '2 - Toolbox' style is essentially the same as the '1 - Listbar' style with the exception that, when scrollbuttons are required to scroll items within a UltraExplorerBarGroup they are placed in the UltraExplorerBarGroup's header.

The '3 - OutlookNavigationPane' style emulates the behavior of the navigation pane seen in Microsoft Outlook. One UltraExplorerBarGroup can display its UltraExplorerBarItems at a time. Scrolling is on an item-level basis (as opposed to a group-level basis). The end-user can configure certain groups to be hidden or represented by an icon beneath the group header area.

The '4 - VisualStudio2005Toolbox' style emulates the behavior of the Toolbox in Microsoft Visual Studio 2005. This style is similar to the '0 - ExplorerBar' style in that zero or more UltraExplorerBarGroups to be expanded at any given time. This style provides group-level scrolling.

Example
The following code shows how to determine the number of items in the currently selected group. Note that only control styles Listbar and Toolbox have the concept of SelectedGroup.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button13.Click

		' Display the number of items in the currently selected group.  Note that
		' only control styles Listbar and Toolbox have the concept of SelectedGroup.
		If (Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Or Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox) Then
			If (Not Me.ultraExplorerBar1.SelectedGroup Is Nothing) Then
				Debug.WriteLine(String.Format("The Selected group contains {0} Items.", Me.ultraExplorerBar1.SelectedGroup.Items.Count))
			End If
		End If

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button13_Click(object sender, System.EventArgs e)
		{
			// Display the number of items in the currently selected group.  Note that
			// only control styles Listbar and Toolbox have the concept of SelectedGroup.
			if (this.ultraExplorerBar1.Style	== UltraExplorerBarStyle.Listbar	||
				this.ultraExplorerBar1.Style	== UltraExplorerBarStyle.Toolbox)
			{
				if (this.ultraExplorerBar1.SelectedGroup != null)
					Debug.WriteLine(string.Format("The Selected group contains {0} Items.", this.ultraExplorerBar1.SelectedGroup.Items.Count));
			}

		}
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