Beispiel #1
0
        private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Pivot p = sender as Pivot;

            Debug.Assert(p != null, "p != null");
            PivotItem pI = p.SelectedItem as PivotItem;

            if (pI != null)
            {
                switch (pI.Tag.ToString())
                {
                case "0":
                    //General
                    //SettingFrame.Navigate(typeof(SaveLocationSettingPage));
                    break;

                case "1":
                    //Rate and Feedback
                    SettingFrame.Navigate(typeof(RateAndFeedbackPage));
                    break;

                case "2":
                    //About
                    SettingFrame.Navigate(typeof(AboutPage));
                    break;

                case "3":
                    //More apps
                    SettingFrame.Navigate(typeof(MoreAppsPage));
                    break;
                }
            }
        }
Beispiel #2
0
 public void loadframes()
 {
     FitnessFrame.Navigate(new Elements.FitnessScreen());
     DriveFrame.Navigate(new Elements.DriveScreen());
     SettingFrame.Navigate(new Elements.SettingScreen());
     NavigationFrame.Navigate(navigationScreen);
     BorderDrive.BorderThickness = new Thickness(10);
 }
Beispiel #3
0
        private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            PivotItem p = SettingPivot.SelectedItem as PivotItem;

            Debug.Assert(p != null, "p != null");
            switch (p.Tag.ToString())
            {
            case "about":
            {
                SettingFrame.Navigate(typeof(AboutPage));
                break;
            }

            case "rate":
            {
                SettingFrame.Navigate(typeof(RateAndFeedbackPage));
                break;
            }
            }
        }
        private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Pivot p = sender as Pivot;

            Debug.Assert(p != null, "p != null");
            switch (p.SelectedIndex)
            {
            case -1:
                break;

            case 0:
                //Save location
                SettingFrame.Navigate(typeof(SaveLocationSettingPage));
                break;

            case 1:
                //About
                SettingFrame.Navigate(typeof(AboutPage));
                break;

            case 2:
                //Rate and feedback
                SettingFrame.Navigate(typeof(RateAndFeedbackPage));
                break;

            case 3:
                //Update database
                SettingFrame.Navigate(typeof(UpdateDatabasePage));
                break;

            case 4:
                //Language setting
                SettingFrame.Navigate(typeof(LanguagePage));
                break;

            case 5:
                //Language setting
                SettingFrame.Navigate(typeof(MoreAppPage));
                break;
            }
        }