Animating Progress Bar

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    2 posts
    Member since:
    Dec 2007

    Posted 12 Dec 2007 Link to this post

    I'm trying to make my RadProgressBar control disappear gradually by doing an animation on the Opacity Property.

    I found an example of doing animation on a border of a button, but I can't seem to apply the same techniques to the Progress Bar.

    Does anyone have an example of animating a RadProgressBar's properties?

    Thanks much!
  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 14 Dec 2007 Link to this post

    Hello Kevin,

    Thank you for writing.

    Use the following as a guide:
    1. Subscribe to the Load event of your form
    2. Write the following code snippet in the load event handler
                border = (BorderPrimitive)this.radProgressBar1.ProgressBarElement.Children[3] as BorderPrimitive;     
                border.Width = 5;     
                border.GradientStyle = GradientStyles.Linear;     
                border.ForeColor = Color.White;     
                border.ForeColor2 = Color.Green;     
                border.ForeColor3 = Color.Yellow;     
                border.ForeColor4 = Color.Blue;     
                animatedAngle.AnimationFinished += new AnimationFinishedEventHandler(animatedAngle_AnimationFinished);     

        3.  In the AnimationFinishedHandler add the following:

           void animatedAngle_AnimationFinished(object sender, AnimationStatusEventArgs e)

    If you have any additional questions, please contact us.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top