StudentDetailsWindow.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <Window x:Class="WpfApp3.Windows.StudentDetailsWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp3.Windows"
  7. mc:Ignorable="d"
  8. Title="Полная информация о студенте" Height="550" Width="500">
  9. <Window.Background>
  10. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  11. <GradientStop Color="LightPink" Offset="0"/>
  12. <GradientStop Color="LightYellow" Offset="0.5"/>
  13. <GradientStop Color="LightGreen" Offset="1"/>
  14. </LinearGradientBrush>
  15. </Window.Background>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition Height="Auto" />
  25. <RowDefinition Height="Auto" />
  26. <RowDefinition Height="Auto" />
  27. <RowDefinition Height="Auto" />
  28. </Grid.RowDefinitions>
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="Auto" />
  31. <ColumnDefinition Width="*" />
  32. </Grid.ColumnDefinitions>
  33. <StackPanel>
  34. <Label Grid.Row="0" Grid.Column="0" Content="Идентификационный номер:" />
  35. <TextBlock Text="{Binding Id}" FontStyle="Italic" FontSize="16" />
  36. <Label Grid.Row="1" Grid.Column="0" Content="Имя:" />
  37. <TextBlock Text="{Binding Name}" FontStyle="Italic" FontSize="16" />
  38. <Label Grid.Row="2" Grid.Column="0" Content="Возраст:" />
  39. <TextBlock Text="{Binding Age}" FontStyle="Italic" FontSize="16" />
  40. <Label Grid.Row="3" Grid.Column="0" Content="Страна:" />
  41. <TextBlock Text="{Binding Country}" FontStyle="Italic" FontSize="16" />
  42. <Label Grid.Row="4" Grid.Column="0" Content="Средний балл:" />
  43. <TextBlock Text="{Binding GPA}" FontStyle="Italic" FontSize="16" />
  44. <Label Grid.Row="5" Grid.Column="0" Content="Специальность:" />
  45. <TextBlock Text="{Binding Speciality}" FontStyle="Italic" FontSize="16" />
  46. <Label Grid.Row="6" Grid.Column="0" Content="Стипендия:" />
  47. <TextBlock Text="{Binding Grant}" FontStyle="Italic" FontSize="16" />
  48. <Label Grid.Row="7" Grid.Column="0" Content="Курс:" />
  49. <TextBlock Text="{Binding Course}" FontStyle="Italic" FontSize="16" />
  50. <Label Grid.Row="8" Grid.Column="0" Content="Дата зачисления:" />
  51. <TextBlock Text="{Binding EnrollmentDate}" FontStyle="Italic" FontSize="16" />
  52. <Label Grid.Row="9" Grid.Column="0" Content="Очное обучение:" />
  53. <TextBlock Text="{Binding IsFullTime}" FontStyle="Italic" FontSize="16" />
  54. </StackPanel>
  55. <StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  56. <Button Width="100" Height="30" Background="Bisque" Content="OK" IsCancel="True" Click="OKButton_Click" />
  57. </StackPanel>
  58. </Grid>
  59. </Window>