Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            UserControl usc = new HomeWindow();

            GridMain.Children.Add(usc);
        }
Exemplo n.º 2
0
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "HomeItem":
                usc = new HomeWindow();
                GridMain.Children.Add(usc);
                break;

            case "ItemAanvragen":
                usc = new Chauffeursaanvragen();
                GridMain.Children.Add(usc);
                break;

            case "ItemKoppelen":
                usc = new Chauffeurskoppelen();
                GridMain.Children.Add(usc);
                break;

            case "ItemOntkoppelen":
                usc = new Chauffeursontkoppelen();
                GridMain.Children.Add(usc);
                break;

            case "ItemContact":
                usc = new ContactPagina();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }