Skip to content

Commit

Permalink
Öffnet Fenster als Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
LMStudent committed Feb 12, 2020
1 parent e599837 commit 01666fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WPF-1/WPF1-Unterfenster/WPF1-Unterfenster/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mc:Ignorable="d"
Title="Community Fragen - WPF-1" Height="287" Width="460" Background="#00A8C6">
<Grid>
<Button Content="Zusätzliches Fenster öffnen" HorizontalAlignment="Center" Margin="0,88,0,0" VerticalAlignment="Top" Background="#F9F2E7" Click="Button_Click"/>

<Button Content="Zusätzliches Fenster öffnen" HorizontalAlignment="Center" Margin="0,111,0,0" VerticalAlignment="Top" Background="#F9F2E7" Click="Button_Click"/>
<Button Content="Fenster als Dialog öffnen" HorizontalAlignment="Center" Margin="0,136,0,0" VerticalAlignment="Top" Background="#F9F2E7" Click="Button_Click_1"/>
</Grid>
</Window>
6 changes: 6 additions & 0 deletions WPF-1/WPF1-Unterfenster/WPF1-Unterfenster/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ private void Button_Click(object sender, RoutedEventArgs e)
SubWindow sub = new SubWindow();
sub.Show();
}

private void Button_Click_1(object sender, RoutedEventArgs e)
{
SubWindow sub = new SubWindow();
sub.ShowDialog();
}
}
}

0 comments on commit 01666fc

Please sign in to comment.