private void Test_Click(object sender, RoutedEventArgs e) { TestForm myTest = new TestForm(); myTest.Owner = this; myTest.Show(); }