Skip to content

Commit

Permalink
Erstellt Eltern-Kind-Beziehung zwischen den Fenstern
Browse files Browse the repository at this point in the history
  • Loading branch information
LMStudent committed Feb 12, 2020
1 parent 68e6ff4 commit 8d799ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WPF-1/WPF1-Unterfenster/WPF1-Unterfenster/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public MainWindow()
private void OpenWindowButton_Click(object sender, RoutedEventArgs e)
{
SubWindow sub = new SubWindow();
// Sorgt dafür, dass das sub geschlossen wird, wenn das MainWindow geschlossen wird!
sub.Owner = this;
sub.Show();
}

Expand Down

0 comments on commit 8d799ee

Please sign in to comment.