'宣言 Public Property MarqueeFillAppearance As AppearanceBase
public AppearanceBase MarqueeFillAppearance {get; set;}
Private Sub InitializeUltraActivityIndicator() ' Set the ViewStyle to change the style of the control Me.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Aero ' Set the AnimationSpeed to speed up the animation Me.ultraActivityIndicator1.AnimationSpeed = 50 ' Set the BorderStyle Me.ultraActivityIndicator1.BorderStyle = Infragistics.Win.UIElementBorderStyle.WindowsVista ' Set the MarqueeAnimationStyle so the animation bounces back and forth. Me.ultraActivityIndicator1.MarqueeAnimationStyle = Infragistics.Win.UltraActivityIndicator.MarqueeAnimationStyle.BounceBack ' Set the MarqueeMarkerWidth to increase the size of the marker. Me.ultraActivityIndicator1.MarqueeMarkerWidth = 150 ' Modify the MarqueeFillAppearance to change the appearance of the marquee marker. Me.ultraActivityIndicator1.MarqueeFillAppearance.BackColor = Color.DarkRed ' Modify the Appearance to change the general appearance of the control. Me.ultraActivityIndicator1.Appearance.BackColor = Color.DarkSlateGray Me.ultraActivityIndicator1.Appearance.BorderColor = Color.Black End Sub
private void InitializeUltraActivityIndicator() { // Set the ViewStyle to change the style of the control this.ultraActivityIndicator1.ViewStyle = Infragistics.Win.UltraActivityIndicator.ActivityIndicatorViewStyle.Aero; // Set the AnimationSpeed to speed up the animation this.ultraActivityIndicator1.AnimationSpeed = 50; // Set the BorderStyle this.ultraActivityIndicator1.BorderStyle = Infragistics.Win.UIElementBorderStyle.WindowsVista; // Set the MarqueeAnimationStyle so the animation bounces back and forth. this.ultraActivityIndicator1.MarqueeAnimationStyle = Infragistics.Win.UltraActivityIndicator.MarqueeAnimationStyle.BounceBack; // Set the MarqueeMarkerWidth to increase the size of the marker. this.ultraActivityIndicator1.MarqueeMarkerWidth = 150; // Modify the MarqueeFillAppearance to change the appearance of the marquee marker. this.ultraActivityIndicator1.MarqueeFillAppearance.BackColor = Color.DarkRed; // Modify the Appearance to change the general appearance of the control. this.ultraActivityIndicator1.Appearance.BackColor = Color.DarkSlateGray; this.ultraActivityIndicator1.Appearance.BorderColor = Color.Black; }