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

Rotate Animation for Orientation Changed

1 Answer 120 Views
PhoneApplicationFrame
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 2
Michael asked on 23 May 2012, 09:41 AM
I'm trying to use the PhoneApplicationFrame to duplicate the rotation animation when the phone orientation changes that the Email application uses.

Here is my code from InitializePhoneApplication
var rotateAnimation = this.Resources["rotateAnimation"] as RadScaleMoveAndRotateAnimation;
rotateAnimation.RotateAnimation.Axes = PerspectiveAnimationAxis.X;
rotateAnimation.RotateAnimation.CenterX = 0.5;
rotateAnimation.RotateAnimation.StartAngleX = 360;
rotateAnimation.RotateAnimation.EndAngleX = 0;
rotateAnimation.RotateAnimation.Direction = PerspectiveAnimationDirection.Clockwise;
 
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
var frame = new RadPhoneApplicationFrame();
frame.OrientationChangeAnimation = rotateAnimation;

I'm not even sure if this is the correct settings but it is the closest thing that looks like it could be what I want. The unfortunate thing is that this doesn't even appear to handle all the transitions possible for an orientation change (I have a hardcoded Clockwise direction for the change). I just want to provide a transition that is familiar to users and I've come to expect the rotation animation for windows phone apps.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 28 May 2012, 10:01 AM
Hello Michael,

Thanks for contacting us and for your question.

Currently RadPhoneApplicationFrame supports only one type of animation when the orientation of the page changes, i.e. it is not aware of the direction of the orientation change.

Since we consider supporting different types of animations for the different orientation change directions we will extent RadPhoneApplicationFrame to provide this functionality for the upcoming official release (scheduled for the first week of June). We will expose a new property that will allow you to specify a different animation for that purpose.

I have added 1000 Telerik points to your account for bringing our attention to this.

Let me know in case you have further questions or need assistance.

Kind regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PhoneApplicationFrame
Asked by
Michael
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Share this question
or