private void btn5_Click(object sender, RoutedEventArgs e) { MyTabControl tc = new MyTabControl(); tc.ShowDialog(); }