This question is locked. New answers and comments are not allowed.
I am trying to use the rad window for Windows Phone to simulate a card turning over from back to front. I want the card to turn from left to right and display the back image from 0 to 90 degrees. At 90 degrees the image should change to the front image and display from 90 to 180 degrees. The card is not turning at all – it just displays. My code is below. Thanks for your help.
private void radWindow2_WindowOpening(object sender, System.ComponentModel.CancelEventArgs e) { Uri uri = new Uri("CardBack.png", UriKind.Relative); BitmapImage imgSource = new BitmapImage(uri); Image image = new Image(); image.Source = imgSource; btnRad2.Content = image; RadPlaneProjectionAnimation animation1 = new RadPlaneProjectionAnimation(); animation1.StartAngleX = 0; animation1.StartAngleY = 0; animation1.StartAngleZ = 0; animation1.EndAngleX = 90; animation1.EndAngleY = 90; animation1.EndAngleZ = 90; animation1.SpeedRatio = .1; animation1.Direction = PerspectiveAnimationDirection.Clockwise; RadAnimationManager.Play(radWindow2, animation1); animation1.Ended += new EventHandler<EventArgs>(radWindow2_Ended); } void radWindow2_Ended(object sender, EventArgs e) { Uri uri = new Uri("AceSpades.png", UriKind.Relative); BitmapImage imgSource = new BitmapImage(uri); Image image = new Image(); image.Source = imgSource; btnRad2.Content = image; RadPlaneProjectionAnimation animation2 = new RadPlaneProjectionAnimation(); animation2.StartAngleX = 90; animation2.StartAngleY = 90; animation2.StartAngleZ = 90; animation2.EndAngleX = 180; animation2.EndAngleY = 180; animation2.EndAngleZ = 180; animation2.SpeedRatio = .1; animation2.Direction = PerspectiveAnimationDirection.Clockwise; RadAnimationManager.Play(radWindow2, animation2); }