private void TableControlClick(object sender, RoutedEventArgs e) { TableControl tableControl = new TableControl(); tableControl.Show(); Application.Current.Windows[0].Visibility = Visibility.Hidden; }