How To Set The RotationDirection?

2 posts, 0 answers
  1. Lou
    Lou avatar
    2 posts
    Member since:
    Mar 2009

    Posted 18 Apr 2011 Link to this post

    Hi,

    I'm working with the RadTransitionControl.  I see that the following enum exists:
    Telerik.Windows.Controls.TransitionEffects.RotationDirection

    I'm assuming (but of course could be wrong) that I can use this with transitions like SlideAndZoomTransition so that the transition will come in from left to right, rather than from right to left.  Is this correct?  If so, my problem is that I don't see where I can set it.  

    How do I set the RotationDirection on a given RadTransitionControl?

    Thanks

    ***update: I found some posts saying you can set the flowdirection instead to change the direction.  So I did that, but quickly came across the bug where the transition is flipped upside down before sliding.  So then I came across the fix to that which is to instead set the slidedirection equal to the flow direction.  That unfortunately has no effect for me though.  Here is the code I use, but it has no effect on the direction:

            private TransitionItem _CurrentTransition = null;
            public TransitionItem CurrentTransition
            {
                get
                {
                    if(_CurrentTransition == null)
                    {
                        _CurrentTransition = new TransitionItem();          
                        Telerik.Windows.Controls.TransitionEffects.SlideAndZoomTransition sz = new Telerik.Windows.Controls.TransitionEffects.SlideAndZoomTransition();
                        sz.SlideDirection = System.Windows.FlowDirection.LeftToRight;
                       _CurrentTransition.Transition = sz;
                    }
                    return _CurrentTransition;
                }
                set
                {
                    _CurrentTransition = value;
                }
            }

    Any advice?
  2. Lou
    Lou avatar
    2 posts
    Member since:
    Mar 2009

    Posted 18 Apr 2011 Link to this post

    I got the following to work:

    ((Telerik.Windows.Controls.TransitionEffects.SlideAndZoomTransition)radTransitionControl.Transition).SlideDirection = System.Windows.FlowDirection.LeftToRight;

  3. DevCraft banner
Back to Top