The WinActivityIndicator™ control can be styled with different colors and gradients using Appearance objects and Infragistics’ very own AppStyling. You may consider using the AppStylist® as a recommended choice for styling your application.
The WinActivityIndicator supports two view styles via the ViewStyle property when OS themes are disabled (default). On operating systems that support theming, the ViewStyle property resolves to Aero. When themes are not supported on the operating system, the ViewStyle resolves to Standard.
The following example code shows some of the styling options.
This topic assumes that the control’s animation is enabled using the AnimationEnabled property.
Imports Infragistics.Win
Imports Infragistics.Win.UltraActivityIndicator
Imports Infragistics.Win.AppStyling
' Set Border style
Me.ultraActivityIndicator1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Rounded4Thick
' Set ViewStyle to Aero, when Theming is disabled
Me.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Aero
' Set ViewStyle to Standard, when Theming is disabled
' Me.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle. Standard
' Set Appearance object
' Me.ultraActivityIndicator1.Appearance.BackColor = Color.LightGoldenrodYellow
' Apply Infragistics AppStyling
'StyleManager.Load("LucidDream.isl")
' Enable Theming
' Me.ultraActivityIndicator1.UseOsThemes = Infragistics.Win.DefaultableBoolean.True
' Set ViewStyle to Standard, when Theming is enabled
' Me.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Standard
using Infragistics.Win;
using Infragistics.Win.UltraActivityIndicator;
using Infragistics.Win.AppStyling;
// Set Border style
this.ultraActivityIndicator1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Rounded4Thick;
// Set ViewStyle to Standard, when Theming is disabled
this.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Aero;
// Set ViewStyle to Standard, when Theming is disabled
// this.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Standard;
// Set Appearance object
// this.ultraActivityIndicator1.Appearance.BackColor = Color.LightGoldenrodYellow;
// Apply Infragistics AppStyling
//StyleManager.Load("LucidDream.isl");
// Enable Theming
//this.ultraActivityIndicator1.UseOsThemes = Infragistics.Win.DefaultableBoolean.True;
// Set ViewStyle to Standard, when Theming is enabled
//this.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Standard;