private void picComp_Click(object sender, RoutedEventArgs e) { picComp myPic = new picComp(); myPic.Owner = this; myPic.Show(); }