windows radRotator rotation direction

6 posts, 0 answers
  1. Sameh
    Sameh avatar
    4 posts
    Member since:
    Jan 2008

    Posted 03 Jan 2008 Link to this post

    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 ?

  2. Dwight
    Dwight avatar
    475 posts

    Posted 03 Jan 2008 Link to this post

    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.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Richard Thurgood
    Richard Thurgood avatar
    26 posts
    Member since:
    Nov 2007

    Posted 09 Jul 2008 Link to this post

    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);

  4. Nikolay
    Nikolay avatar
    1805 posts

    Posted 14 Jul 2008 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Michelle
    Michelle avatar
    7 posts
    Member since:
    May 2012

    Posted 19 Jul 2012 Link to this post


    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?
  6. Nikolay
    Nikolay avatar
    1805 posts

    Posted 25 Jul 2012 Link to this post

    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.

    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top