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

How To Set The RotationDirection?

1 Answer 29 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Lou
Top achievements
Rank 1
Lou asked on 18 Apr 2011, 04:21 PM
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?

1 Answer, 1 is accepted

Sort by
0
Lou
Top achievements
Rank 1
answered on 18 Apr 2011, 08:46 PM
I got the following to work:

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

Tags
TransitionControl
Asked by
Lou
Top achievements
Rank 1
Answers by
Lou
Top achievements
Rank 1
Share this question
or