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

wp7 ingnoring ForwardInAnimation & ForwardOutAnimation animations

3 Answers 15 Views
Animation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alius
Top achievements
Rank 1
Alius asked on 29 Apr 2013, 10:57 PM
Hi,

I can't understand why Windows Phone 7 ingnores ForwardInAnimation / ForwardOutAnimation animation settings. Where is no difference if I add something or not - the result the same ForwardInAnimation direction is TopIn/Out. My code looks like:

            RootFrame = new RadPhoneApplicationFrame();

            RootFrame.Navigated += CompleteInitializePhoneApplication;

            RootFrame.Background = App.Current.Resources["MainBackground"] as ImageBrush;

            RadSlideTransition _transition = new RadSlideTransition();

            _transition.ForwardInAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.LeftOut, SpeedRatio = 1.5 };
            _transition.ForwardOutAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.LeftIn, SpeedRatio = 1.5 };

            _transition.BackwardInAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.RightIn, SpeedRatio = 1.5 };
            _transition.BackwardOutAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.RightOut, SpeedRatio = 1.5 };

            _transition.PlayMode = TransitionPlayMode.Consecutively;

            RootFrame.Transition = _transition;

Any ideas what is wrong?




3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 02 May 2013, 08:43 AM
Hello Alius,

Do you mean that the ForwardIn and ForwardOut animations are not played at all, or they are wrong?

All the best,
Valentin.Stoychev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Alius
Top achievements
Rank 1
answered on 02 May 2013, 08:50 AM
not played at all
0
Valentin.Stoychev
Telerik team
answered on 08 May 2013, 10:34 AM
Hi Alius,

Please excuse us for the late reply!

to have horizontal slide you need to use the following:
RadSlideTransition _transition = new RadSlideTransition();
 
 //_transition.ForwardInAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.LeftOut, SpeedRatio = 1.5 };
 //_transition.ForwardOutAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.LeftIn, SpeedRatio = 1.5 };
 
 //_transition.BackwardInAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.RightIn, SpeedRatio = 1.5 };
 //_transition.BackwardOutAnimation = new RadMoveAnimation() { MoveDirection = MoveDirection.RightOut, SpeedRatio = 1.5 };
 _transition.Orientation = System.Windows.Controls.Orientation.Horizontal;
 _transition.PlayMode = TransitionPlayMode.Consecutively;
 
 RootFrame.Transition = _transition;


Kind regards, Valentin.Stoychev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Animation
Asked by
Alius
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Alius
Top achievements
Rank 1
Share this question
or