Color of graphic

3 posts, 0 answers
  1. Aaron
    Aaron avatar
    19 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    Newbie question - Is there a way to change the color of the graphic that is used in the BusyIndicator control? Also, is there any way to change the speed of the animation?
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 10 Dec 2010 Link to this post

    Hi Aaron,

    Yes -  you can edit the ProgressBar inside RadBusyIndicator by generating the template of RadBusyIndicator first, and then the template of the ProgressBar in Expression Blend. See screenshots attached. In the Resources tab  you will find Brushes responsible for the colors of the ProgressBar.

    To speed up or speed down the animation, please experiment with the SpeedRatio property of the double animation. For example (the Indeterminate state of the ProgressBar template):
     
    <VisualState x:Name="Indeterminate">
        <Storyboard RepeatBehavior="Forever">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="IndeterminateDonut">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="Visible"/>
            </ObjectAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" SpeedRatio="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)" Storyboard.TargetName="IndeterminateDonut">
                 <SplineDoubleKeyFrame KeyTime="00:00:01" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
         </Storyboard>
    </VisualState>

    I hope this info will help you for an easier customization.

    Greetings,
    Dani
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Dani
    Admin
    Dani avatar
    848 posts

    Posted 10 Dec 2010 Link to this post

    Hi Aaron,

    The attachement.


    Regards,
    Dani
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top