Version

UltraExplorerBarViewStyle Enumeration

Enumerator used to specify the view style of the UltraExplorerBar.
Syntax
'Declaration
 
Public Enum UltraExplorerBarViewStyle 
   Inherits System.Enum
public enum UltraExplorerBarViewStyle : System.Enum 
Members
MemberDescription
DefaultSetting is based on the control Style.
Office2000The UltraExplorerBar emulates the look of Office2000.
Office2003The UltraExplorerBar emulates the look of Office2003.
Office2007The UltraExplorerBar emulates the look of Office2007.
VisualStudio2005The UltraExplorerBar emulates the look of Visual Studio 2005.
XPThe UltraExplorerBar emulates the look of Windows XP.
XPExplorerBarThe UltraExplorerBar emulates the look of the ExplorerBar in WindowsXP
Example
The following code shows how to acess the ViewStyle and the ViewStyleResolved properties. The ViewStyle property determines the visual style used to render the control's elements. The resolved version of the property returns the setting used when ViewStyle is set to default. In this case the actual resolved setting used depends on the control's style.

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


	Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button16.Click

		' Set the ViewStyle property to 'Default', then test ViewStyleResolved
		' below for each of the control styles.  
		Me.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.Default


		' When we set the control style to ExplorerBar, ViewStyleResolved will return XPExplorerBar.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' When we set the control style to Listbar, ViewStyleResolved will return XP.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' When we set the control style to Toolbox, ViewStyleResolved will return XP.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' Of course, we can explicitly set the ViewStyle property for any control style to
		' override the default.
		Me.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.XPExplorerBar


		' When we set the control style to Listbar, ViewStyleResolved now returns XPExplorerBar
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())

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


		private void button16_Click(object sender, System.EventArgs e)
		{
			// Set the ViewStyle property to 'Default', then test ViewStyleResolved
			// below for each of the control styles.  
			this.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.Default;


			// When we set the control style to ExplorerBar, ViewStyleResolved will return XPExplorerBar.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// When we set the control style to Listbar, ViewStyleResolved will return XP.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// When we set the control style to Toolbox, ViewStyleResolved will return XP.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// Of course, we can explicitly set the ViewStyle property for any control style to
			// override the default.
			this.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.XPExplorerBar;


			// When we set the control style to Listbar, ViewStyleResolved now returns XPExplorerBar;
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());
		}
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