5 Answers, 1 is accepted
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
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
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);
}
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
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?
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.
Nikolay
the Telerik team