This is a migrated thread and some comments may be shown as answers.

Color of graphic

2 Answers 89 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 09 Dec 2010, 05:16 PM
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 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 10 Dec 2010, 10:37 AM
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
0
Dani
Telerik team
answered on 10 Dec 2010, 10:39 AM
Hi Aaron,

The attachement.


Regards,
Dani
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
BusyIndicator
Asked by
Aaron
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or