예제 #1
0
 private void MenuButton4_Click(object sender, RoutedEventArgs e)
 {
     FramePage.Navigate(new Uri("Pages/Muzyka.xaml", UriKind.Relative));
     Schet = 4;
     Togl();
     music.off();
 }
예제 #2
0
 private void MenuButton3_Click(object sender, RoutedEventArgs e)
 {
     FramePage.Navigate(new Uri("Pages/Window_Ubakyt.xaml", UriKind.Relative));
     Schet = 3;
     Togl();
     music.off();
 }
예제 #3
0
        public void CheckInputInFrameField()
        {
            FramePage page = new FramePage(Driver);

            page.OpenStartPage();
            //page.AddInputField();
            page.SwitchToFrameWithInputField();
            page.TypeTextInInput("test text");
        }
예제 #4
0
        public void InitPage()
        {
            loginPage    = new LoginPage(this);
            activityPage = new ActivityPage(this);
            framePage    = new FramePage(this);
            infoPage     = new InformationPage(this);
            notiPage     = new NotificationPage(this);
            listPage     = new MyListPage(this);

            _currentWindowSize = new Size(this.Width, this.Height);
            mainFrame.Navigate(loginPage);
        }
예제 #5
0
        private void NavView_ItemInvoked(object sender, NavigationViewItemInvokedEventArgs e)
        {
            var nviContent = e.InvokedItem.ToString();

            if (_pages.ContainsKey(nviContent))
            {
                //navView.Content = _pages[nviContent];
                _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
            }
            else
            {
                switch (nviContent)
                {
                case "Theme Manager":
                    var tm = new ThemeManagerPage();
                    _pages.Add("Theme Manager", tm);
                    //navView.Content = tm;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "Basic Controls":
                    var item = new BasicControls();
                    _pages.Add("Basic Controls", item);
                    //navView.Content = item;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "ContentDialog":
                    var dia = new Dialogs();
                    _pages.Add("ContentDialog", dia);
                    //navView.Content = dia;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "Icons":
                    var ico = new IconsPage();
                    _pages.Add("Icons", ico);
                    //navView.Content = ico;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "NavigationView":
                    var nv = new NavViewPage();
                    _pages.Add("NavigationView", nv);
                    //navView.Content = nv;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "Settings":
                    var st = new SettingsPage();
                    _pages.Add("Settings", st);
                    //navView.Content = st;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "Color Picker":
                    var c = new ColorPickerPage();
                    _pages.Add("Color Picker", c);
                    //navView.Content = c;
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "Frame":
                    var f = new FramePage();
                    _pages.Add("Frame", f);
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;

                case "NumberBox":
                    var nb = new NumberBoxPage();
                    _pages.Add("NumberBox", nb);
                    _frame.Navigate(_pages[nviContent].GetType(), null, e.RecommendedNavigationTransitionInfo);
                    break;
                }
            }
            navView.Header = nviContent;
        }