コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            Loaded += (sender, args) =>
            {
                MainWindowPageHost.ChangeView(new InitialPage(),
                                              OldPageAnimation.None, NewPageAnimation.None);
            };
        }
コード例 #2
0
 private void OnSlideBottomTopButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new SlideBottomTopPage(),
                                   OldPageAnimation.SlideOutToBottom, NewPageAnimation.SlideInFromTop);
 }
コード例 #3
0
 private void OnSlideRightLeftButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new SlideRightLeftPage(),
                                   OldPageAnimation.SlideOutToRight, NewPageAnimation.SlideInFromLeft);
 }
コード例 #4
0
 private void OnScaleToOutScaleFromOutButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new ScaleToOutScaleFromOutPage(),
                                   OldPageAnimation.ScaleToOut, NewPageAnimation.ScaleFromOut);
 }
コード例 #5
0
 private void OnFadeButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new FadeOutFadeInPage(),
                                   OldPageAnimation.FadeOut, NewPageAnimation.FadeIn);
 }
コード例 #6
0
 private void OnNoneButtonClicked(object sender, RoutedEventArgs e)
 {
     MainWindowPageHost.ChangeView(new NonePage(),
                                   OldPageAnimation.None, NewPageAnimation.None);
 }