Version

AnimationSpeed Property

Returns/sets an enumeration that determines the speed of the animation when expanding and collapsing UltraExplorerBarGroups.
Syntax
'Declaration
 
Public Property AnimationSpeed As AnimationSpeed
public AnimationSpeed AnimationSpeed {get; set;}
Remarks

This property controls the duration of an animation sequences performed by the UltraExplorerBar. If the control's Style property does not support animations then this property has no effect. The control styles which support animation are '0 - ExplorerBar', ‘1 – Listbar’, and ‘2 – Toolbox’.

Example
The following code demonstrates how to set the properties that controls group animation. it also shows how to query and set the control's BorderStyle and BorderStyleResolved proeprties.

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


	Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button3.Click

		' Turn on Group animation and set the animation speed to fast.  This will animate the
		' opening, closing and selection of Groups.
		Me.ultraExplorerBar1.AnimationEnabled = True
		Me.ultraExplorerBar1.AnimationSpeed = AnimationSpeed.Fast


		' If BorderStyle is set to 'Default' and the resolved border style is not raised,
		' set it to raised now.
		If (Me.ultraExplorerBar1.BorderStyle = UIElementBorderStyle.Default AndAlso Me.ultraExplorerBar1.BorderStyleResolved <> UIElementBorderStyle.Raised) Then
			Me.ultraExplorerBar1.BorderStyle = UIElementBorderStyle.Raised
		End If


		' If the control style is Listbar or Toolbox, show the built-in context menus.
		If (Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Or _
		    Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox) Then
			Me.ultraExplorerBar1.ShowDefaultContextMenu = True

		End If

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


		private void button3_Click(object sender, System.EventArgs e)
		{
			// Turn on Group animation and set the animation speed to fast.  This will animate the
			// opening, closing and selection of Groups.
			this.ultraExplorerBar1.AnimationEnabled = true;
			this.ultraExplorerBar1.AnimationSpeed	= AnimationSpeed.Fast;


			// If BorderStyle is set to 'Default' and the resolved border style is not raised,
			// set it to raised now.
			if (this.ultraExplorerBar1.BorderStyle			== UIElementBorderStyle.Default	&&
				this.ultraExplorerBar1.BorderStyleResolved	!= UIElementBorderStyle.Raised)
				this.ultraExplorerBar1.BorderStyle	= UIElementBorderStyle.Raised;


			// If the control style is Listbar or Toolbox, show the built-in context menus.
			if (this.ultraExplorerBar1.Style == UltraExplorerBarStyle.Listbar  ||
				this.ultraExplorerBar1.Style == UltraExplorerBarStyle.Toolbox)
				this.ultraExplorerBar1.ShowDefaultContextMenu = true;

		}
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