public MainWindow()
        {
            InitializeComponent();

            Loaded += (sender, args) =>
            {
                MainWindowPageHost.ChangeView(new InitialPage(),
                                              OldPageAnimation.None, NewPageAnimation.None);
            };
        }
 private void OnSlideBottomTopButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new SlideBottomTopPage(),
                                   OldPageAnimation.SlideOutToBottom, NewPageAnimation.SlideInFromTop);
 }
 private void OnSlideRightLeftButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new SlideRightLeftPage(),
                                   OldPageAnimation.SlideOutToRight, NewPageAnimation.SlideInFromLeft);
 }
 private void OnScaleToOutScaleFromOutButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new ScaleToOutScaleFromOutPage(),
                                   OldPageAnimation.ScaleToOut, NewPageAnimation.ScaleFromOut);
 }
 private void OnFadeButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new FadeOutFadeInPage(),
                                   OldPageAnimation.FadeOut, NewPageAnimation.FadeIn);
 }
 private void OnNoneButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new NonePage(),
                                   OldPageAnimation.None, NewPageAnimation.None);
 }