private void OnContactEditClick(object sender, RoutedEventArgs e) { var editContact = new EditContactWindow(); editContact.Owner = this; editContact.ShowDialog(); }