Пример #1
0
        private void cmbUst_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TshirtWindow Tshirt = new TshirtWindow();

            if (cmbUst.SelectedItem.ToString() == "T-shirt")
            {
                this.Visibility = Visibility.Hidden;
                Tshirt.Show();
            }


            //NavigationWindow win = new NavigationWindow();

            //MainWindow mainwindow = new MainWindow();

            //NavigationService nav = NavigationService.GetNavigationService(main);
            //var tsh = cmbUst.SelectedItem.ToString();


            //mainwindow.Content = "TshirtWindow.xaml";
            //win.Content = Tshirt;
            //win.Show();

            //nav.Navigate(Tshirt);
        }
Пример #2
0
        private void cmbUst_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TshirtWindow Tshirt = new TshirtWindow();

            if (cmbUst.SelectedItem.ToString() == "T-shirt")
            {
                this.Visibility = Visibility.Hidden;
                Tshirt.Show();
            }
        }