private void buttonModifyIndex_Click(object sender, RoutedEventArgs e) { SubWindow1 childWindow = new SubWindow1(); childWindow.ShowInTaskbar = false; childWindow.Owner = Application.Current.MainWindow; childWindow.Show(); }