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

How to enlarge BusyIndicator sign?

5 Answers 119 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maciej
Top achievements
Rank 1
Maciej asked on 15 Jul 2011, 10:19 PM
Hello,
simple & quick question:
Is it possible to enlarge busy indicator sign?

Thanks,

Maciej

5 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 19 Jul 2011, 07:31 AM
Hi Maciej,

 Thank you for the question.
Of course you can. You can simply set a ScaleTransform object to RadBusyIndicator's RenderTransform property.
Please write again if you have other questions.

Kind regards,
Victor
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Maciej
Top achievements
Rank 1
answered on 20 Jul 2011, 08:27 PM
Hi Victor,

Thank you for your solution. Works like a charm.
I've completely forgot about ScaleTransform object. Thanks for reminding!

Best regards,

Maciej
0
Cesar Vinas
Top achievements
Rank 1
answered on 12 Nov 2011, 03:57 AM
Hi Victor,

can you please provide an example? I'm doing this in my application:

<

 

 

telerikPrimitives:RadBusyIndicator x:Name="LoadingPanel" Content="Loading..." IsRunning="{Binding}" AnimationStyle="AnimationStyle1">

 

 

 

 

<telerikPrimitives:RadBusyIndicator.RenderTransform>

 

 

 

 

<ScaleTransform ScaleX="1.5" ScaleY="1.5" />

 

 

 

 

</telerikPrimitives:RadBusyIndicator.RenderTransform>

 

 

 

 

</telerikPrimitives:RadBusyIndicator>

 


It works, but the animation is no longer centered. I guess I have to change some other properties (CenterX and CenterY), but how do I know what values to set in order to have the content correctly centered after applying the ScaleTransform?

Thanks,
Cesar
0
Deyan
Telerik team
answered on 15 Nov 2011, 08:32 AM
Hello César,

You can simply calculate the new size of the animation after setting a scale transform. The width is equal to the horizontal scale transform factor multiplied by the current width of the animation, and the height is equal to the vertical scale transform factor multiplied by the height of the animation.

So, if you set a scale transform equal to 1.5 for X and 1.5 for Y, you can simply set a RenderTransformOrigin to RadBusyIndicator which is equal to 0.5, 0.5.

I hope this helps.

Regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Cesar Vinas
Top achievements
Rank 1
answered on 24 Nov 2011, 03:03 AM
Thanks Deyan. It worked perfectly!
Tags
BusyIndicator
Asked by
Maciej
Top achievements
Rank 1
Answers by
Victor
Telerik team
Maciej
Top achievements
Rank 1
Cesar Vinas
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or