public AdminView() { InitializeComponent(); UserControl usc = new UCEmployeeManagementView(); GridMain.Children.Add(usc); }
private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e) { UserControl usc = null; GridMain.Children.Clear(); switch (((ListViewItem)((ListView)sender).SelectedItem).Name) { case "ItemHome": usc = new UCEmployeeManagementView(); GridMain.Children.Add(usc); break; default: break; } }