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

windows radRotator rotation direction

5 Answers 120 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Sameh
Top achievements
Rank 1
Sameh asked on 03 Jan 2008, 07:07 AM
How to change the rotation direction to be horizontal and moving from left to right, or right to left and displaying more than one item, to be like the marquee in html components ?

regards...

5 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 03 Jan 2008, 12:13 PM
Hi Sameh,

Thank you for writing us. This is the first version of the RadRotator and currently it cannot display more than one item.

To change the animation direction, use the LocationAnimation property. Here are some sample values:
  • (0, 0) - the location will not be animated.
  • (1, 0) - left-to-right animation
  • (-1, 0) - right-to-left animation
  • (0, 1) - top-to-bottom animation
  • (1, -1) - diagonal animation, left-to-right and bottom-to-top
Of course, you can use values different from 0, 1 and -1. Value of +/-20 will mean that the next frame will be at a great distance and the object will be moving faster, but most of the time will be outside the visible area. A
value of 0.2 will mean, that the next frame's location animation will start within the visible area, almost at the final position. Usually, such animations look good if combined with opacity animation:

radRotator1.LocationAnimation = new SizeF(0.5, -0.2); 
radRotator1.OpacityAnimation = true

Should further questions arise, do not hesitate to contact us.

Sincerely,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Richard Thurgood
Top achievements
Rank 1
answered on 10 Jul 2008, 01:10 AM
To take this a step further, you could create some "helper" methods:

private void RotateRightToLeft()
{
  radRotator1.LocationAnimation = new SizeF(1, 0);
}
private void RotateLeftToRight()
{
  radRotator1.LocationAnimation = new SizeF(-1, 0);
}
private void RotateTopToBottom()
{
  radRotator1.LocationAnimation = new SizeF(0, 1);
}
private void RotateDiagnal()
{
  radRotator1.LocationAnimation = new SizeF(1, -1);
}

0
Nikolay
Telerik team
answered on 14 Jul 2008, 11:10 AM
Hi Richard,

Thank you for the valuable suggestion.

I will discuss it with my team for possible implementation in one of our next versions.

We have updated the Telerik points in your account for the suggestions.

If you have additional questions or feedback to share with us, do not hesitate to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michelle
Top achievements
Rank 1
answered on 20 Jul 2012, 03:36 AM
Hi,

I have some problem with the RadRotator. When i try to run, everything seems fine on the first loop. However on the subsequece loop the ScaleTransform of the image will change to 0.5. Is there any thing to prevent it?
0
Nikolay
Telerik team
answered on 25 Jul 2012, 08:23 AM
Hi Michelle,

Thank you for writing.

I am not sure what kind of items you are using in RadRotator. If you are using RadButtonElements, for example, the ScaleTransform is indeed 0.5, but the despite that fact, the RadButtonElement and its content are still shown as if ScaleTransform is 1 (i.e. they are shown without any scaling). In order to understand your situation better, I would kindly ask you to open a new support ticket and send me a sample project which demonstrates the visual issue, related to the ScaleTransform value, that you are experiencing . This will allow me to provide you with a more adequate answer. Thank you for your cooperation.

Greetings,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Rotator
Asked by
Sameh
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Richard Thurgood
Top achievements
Rank 1
Nikolay
Telerik team
Michelle
Top achievements
Rank 1
Share this question
or