Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > windows radRotator rotation direction

Not answered windows radRotator rotation direction

Feed from this thread
  • Sameh avatar

    Posted on Jan 3, 2008 (permalink)

    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...

    Reply

  • Dwight Dwight admin's avatar

    Posted on Jan 3, 2008 (permalink)

    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

    Reply

  • Richard Thurgood avatar

    Posted on Jul 9, 2008 (permalink)

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

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Jul 14, 2008 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > windows radRotator rotation direction
Related resources for "windows radRotator rotation direction"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]