Beispiel #1
0
        private void ContentShowerNavigationFrame_Navigated(object sender, NavigatingCancelEventArgs e)
        {
            var ta = new ThicknessAnimation();

            ta.Duration = TimeSpan.FromSeconds(1);
            QuadraticEase EasingFunction = new QuadraticEase();

            EasingFunction.EasingMode = EasingMode.EaseOut;
            ta.EasingFunction         = EasingFunction;
            ta.DecelerationRatio      = 0.7;
            ta.To = new Thickness(0, 0, 0, 0);
            if (e.NavigationMode == NavigationMode.New)
            {
                ta.From = new Thickness(0, 200, 0, 0);
            }
            else if (e.NavigationMode == NavigationMode.Back)
            {
                ta.From = new Thickness(0, 0, 0, 200);
            }

            var ta2 = new DoubleAnimation();

            ta2.To   = 1;
            ta2.From = 0;
            QuadraticEase EasingFunction2 = new QuadraticEase();

            EasingFunction2.EasingMode = EasingMode.EaseOut;
            ta.EasingFunction          = EasingFunction2;
            //(e.Content as Page).BeginAnimation(MarginProperty, ta);
            ContentShowerNavigationFrame.BeginAnimation(MarginProperty, ta);
            ContentShowerNavigationFrame.BeginAnimation(OpacityProperty, ta2);
        }
Beispiel #2
0
 private void NavigateToOther(object sender, EventArgs e)
 {
     ContentShowerNavigationFrame.Navigate(new ModulePages.ModulePage_OtherPage());
 }
Beispiel #3
0
 private void NavigateToTeleport(object sender, EventArgs e)
 {
     ContentShowerNavigationFrame.Navigate(new ModulePages.ModulePage_TeleportPage());
 }
 private void ModuleButton_Click(object sender, RoutedEventArgs e)
 {
     NavigateWithAnimationBool = false;
     ContentShowerNavigationFrame.Navigate(new MainWindow_DashboardPage_ModulePage());
 }
 private void SettingsButton_Click(object sender, RoutedEventArgs e)
 {
     ContentShowerNavigationFrame.Navigate(new MainWindow_DashboardPage_SettingsPage());
 }