I am trying to follow your docs for PhoneApplicationFrame in order to get various page transitions to work. I have a new wp7 project with the main page and a 2nd page. When the button is clicked on the main page I do a manual navigation to the second page like so:
NavigationService.Navigate(new Uri("/Pages/Settings.xaml", UriKind.Relative));
So that I can see the pages I have set their backgrounds to different colors. Following your docs, my InitializePhoneApplication method in app.xaml.cs looks as pasted below.
However, there is no transition at all. Your docs really don't show how to do this. They talk about it but there is no complete example. When I look at your example project (ExamplesCS_WP) I see you don't even have a InitializePhoneApplication event much less the code below so that's confusing.
Can you help get me started?
THIS CODE IN APP.XAML.CS..........................................................
private void InitializePhoneApplication()
RadTransition transition = new RadTransition();
transition.BackwardInAnimation = this.Resources["fadeInAnimation"] as RadFadeAnimation;
transition.BackwardOutAnimation = this.Resources["fadeOutAnimation"] as RadFadeAnimation;
transition.ForwardInAnimation = this.Resources["fadeInAnimation"] as RadFadeAnimation;
transition.ForwardOutAnimation = this.Resources["fadeOutAnimation"] as RadFadeAnimation;
transition.PlayMode = TransitionPlayMode.Consecutively;
// 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.
RootFrame = new PhoneApplicationFrame();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
// Ensure we don't initialize again
phoneApplicationInitialized = true;