Esempio n. 1
0
        public TabbedPage()
        {
            InitializeComponent();

            var page1 = new Page1 {
                Title = "Список ремонта/проверки"
            };
            var page2 = new Page2 {
                Title = "Добавить блок"
            };
            var page3 = new Page3 {
                Title = "Замена"
            };
            var page4 = new Page4 {
                Title = "Память"
            };

            Children.Add(page1);
            Children.Add(page2);
            Children.Add(page3);
            Children.Add(page4);
        }
Esempio n. 2
0
 private void ListView1_OnItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     if (ListView1.SelectedItem.Equals("MY ACCOUNT"))
     {
         Detail      = new Page2();
         IsPresented = false;
     }
     else if (ListView1.SelectedItem.Equals("SHOP"))
     {
         Detail      = new shop();
         IsPresented = false;
     }
     else if (ListView1.SelectedItem.Equals("FAQ"))
     {
         Detail      = new Page3();
         IsPresented = false;
     }
     else if (ListView1.SelectedItem.Equals("NOTIFICATIONS"))
     {
         Detail      = new Page4();
         IsPresented = false;
     }
 }